MATLAB: I am executing the following code to realize 2X2 MIMO using comm.MIMOchannel system object. In the last line the variables chan_out and chan_out1 are having different outputs even though the instructions are same. Please help me rectifying the erro

comm.mimochannel

Nt=2;Nr=2;
inpt=randi([0 1],Nt,3);
hchan = comm.MIMOChannel(...
'SpatialCorrelation',false, ...
'NumTransmitAntennas',Nt, ...
'NumReceiveAntennas',Nr);
chan_out=step(hchan,inpt');
chan_out1=step(hchan,inpt');

Best Answer

You are applying step() to the same system both times. After you step() the first time, its state changes so the next step() produces different output.