%% Generate Data Field Signal of Non-HT Transmission
% 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, ... 
     'BandwidthOperation','Static');

% 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);

% Copyright 2020 The MathWorks, Inc.