Main Content


Get scrambler initialization range

Since R2020b



[range,numBits] = scramblerRange(cfg) returns range, the scrambler initialization range, and numBits, the number of pseudorandom bits required for scrambler initialization in a non-high-throughput (non-HT) transmission with parameters cfg.


collapse all

Configure transmission parameters by creating a wlanNonHTConfig object, specifying a channel bandwidth of 80 MHz and static bandwidth operation.

cfg = wlanNonHTConfig('ChannelBandwidth','CBW80','SignalChannelBandwidth',true, ... 

Generate a random PSDU of the appropriate length.

psdu = randi([0 1],8*cfg.PSDULength,1,'int8');

Generate the initial pseudorandom scrambler sequence.

[range,numBits] = scramblerRange(cfg);
scramInit = randi(range);

Generate the non-HT Data field signal.

y = wlanNonHTData(psdu,cfg,scramInit);

Input Arguments

collapse all

Non-HT transmission parameters, specified as a wlanNonHTConfig object.

Output Arguments

collapse all

Scrambler initialization range, returned as an integer-valued row vector of the form [min max]. The values of min and max represent the minimum and maximum values, respectively, of pseudorandom bits required for scrambler initialization in a non-HT transmission.

Data Types: double

Number of bits required by the wlanWaveformGenerator or wlanNonHTData function for scrambler initialization in a non-HT transmission, returned as 4, 5, or 7. The value of this output depends on whether the transmission signals bandwidth operation in accordance with the SignalChannelBandwidth and BandwidthOperation property values of the cfg input. For more information, see Table 17-7 of [1].

Data Types: double


[1] IEEE Std 802.11™-2020 (Revision of IEEE Std 802.11-2016). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.” IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems — Local and Metropolitan Area Networks — Specific Requirements.

Extended Capabilities

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

Version History

Introduced in R2020b