www.gusucode.com > wlan 源码程序 matlab案例代码 > wlan/TransmitHTWaveformThrough4x2MIMOChannelExample.m
%% Transmit HT Waveform Through 4x2 MIMO Channel % %% % Create an HT waveform having four transmit antennas and two space-time % streams. cfg = wlanHTConfig('NumTransmitAntennas',4,'NumSpaceTimeStreams',2, ... 'SpatialMapping','Fourier'); txSig = wlanWaveformGenerator([1;0;0;1],cfg); %% % Create a 4x2 MIMO TGn channel and disable large-scale fading effects. tgnChan = wlanTGnChannel('SampleRate',20e6, ... 'NumTransmitAntennas',4, ... 'NumReceiveAntennas',2, ... 'LargeScaleFadingEffect','None'); %% % Pass the transmit waveform through the channel. rxSig = tgnChan(txSig); %% % Display the spectrum of the two received space-time streams. saScope = dsp.SpectrumAnalyzer('SampleRate',20e6, ... 'ShowLegend',true, ... 'ChannelNames',{'Stream 1','Stream 2'}); saScope(rxSig)