%% Estimate SISO Channel Using VHT-LTF
% Display the channel estimate of the data and pilot subcarriers for a VHT format channel using its long training field.
% Create a VHT format configuration object. Generate a VHT-LTF based on cfg.

cfg = wlanVHTConfig;
txSig = wlanVHTLTF(cfg);

%
% Multiply the transmitted VHT-LTF signal by 0.3 - 0.15i and pass it through an AWGN channel having a 30 dB signal-to-noise ratio. Demodulate the received signal.

rxSig = awgn(txSig*(0.3-0.15i),30);
demodSig = wlanVHTLTFDemodulate(rxSig,cfg);

%
% Estimate the channel response using the demodulated VHT-LTF signal.

est = wlanVHTLTFChannelEstimate(demodSig,cfg);

%
% Plot the channel estimate.

scatterplot(est)
grid

% The channel estimate matches the complex channel multiplier.
% Copyright 2012 The MathWorks, Inc.