%% Generate L-STF Waveform
%
% Generate the L-STF waveform for a 40 MHz single antenna VHT packet.
% Create a VHT configuration object. Use this object to generate the L-STF waveform.

cfgVHT = wlanVHTConfig('ChannelBandwidth','CBW40');
y = wlanLSTF(cfgVHT);
size(y)
plot(abs(y))
xlabel('Samples')
ylabel('Amplitude')

% The output L-STF waveform contains 320 samples for a 40 MHz channel bandwidth.
% Copyright 2012 The MathWorks, Inc.