%% Demodulate L-LTF with OFDM Symbol Offset
% Demodulate the L-LTF for the HT-mixed transmission format, given a custom OFDM symbol offset.
% Set the channel bandwidth to 40 MHz and the OFDM symbol offset to 1. That way, the FFT takes place after the guard interval.

cbw = 'CBW40';
ofdmSymOffset = 1;

%
% Create an HT configuration object and use it to generate an L-LTF signal.

cfg = wlanHTConfig('ChannelBandwidth',cbw);
txSig = wlanLLTF(cfg);

%
% Pass the L-LTF signal through an AWGN channel.

rxSig = awgn(txSig,10);

%
% Demodulate the received L-LTF using a custom OFDM symbol offset.

y = wlanLLTFDemodulate(rxSig,'CBW40',ofdmSymOffset);

% Copyright 2012 The MathWorks, Inc.