In line
% Channel and noise Noise addition
y = Ray.*BPSK1 + 10^(-Eb_N0_dB(ii)/20)*awgn;
The
Ray.*BPSK1
only works if instead you start the line with
y=BPSK1'*Ray'+ ..
-0.478487048890906 + 3.821695518247046i
1.171402651187593 - 0.797604495033111i
1.249572268765731 - 1.118081175144724i
-0.896870514142436 - 0.718652054769934i
1.171402651187593 - 0.797604495033111i
1.249572268765731 - 1.118081175144724i
-1.524104405810888 + 2.634337724947769i
yet
BPSK1'*Ray' does not match the second attempt to add noise
10^(-Eb_N0_dB(ii)/20)*awgn;
what do you mean by
% Channel and noise Noise addition
I keep hearing and reading about MATLAB communications applications being developed mainly in SIMULINK.
Can you build the SIMULINK equivalent of the script in the question, i dare say it will simplify it all, quite
Regards
John
