Main Content

wlanGolaySequence

Generate Golay sequence

Description

[Ga,Gb] = wlanGolaySequence(len) returns the Golay sequences Ga and Gb for a specified sequence length. The sequences are defined in IEEE® 802.11ad™-2012, Section 21.11.

example

Examples

collapse all

Generate complementary 32-length Golay sequences.

[Ga,Gb] = wlanGolaySequence(32);

The sum of the autocorrelations is a dirac delta function.

figure
stem(xcorr(Ga)+xcorr(Gb))

Figure contains an axes object. The axes object contains an object of type stem.

Input Arguments

collapse all

Sequence length, specified as 32, 64, or 128.

Data Types: double

Output Arguments

collapse all

Golay sequence, returned as a column vector of integers of length len.

Complementary Golay sequence, returned as a column vector of integers of length len.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2017b