%% Estimate SISO Channel Using HT-LTF
% Estimate and plot the channel coefficients of an HT-mixed format channel by using the high throughput long training field.
% Create an HT format configuration object. Generate the corresponding HT-LTF based on the object.

cfg = wlanHTConfig;
txSig = wlanHTLTF(cfg);

%
% Multiply the transmitted HT-LTF signal by 0.2 + 0.1i and pass it through an AWGN channel. Demodulate the received signal.

rxSig = awgn(txSig*(0.2+0.1i),30);
demodSig = wlanHTLTFDemodulate(rxSig,cfg);

%
% Estimate the channel response using the demodulated HT-LTF.

est = wlanHTLTFChannelEstimate(demodSig,cfg);

%
% Plot the channel estimate.

scatterplot(est)
grid

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