Description of The Input
Description of The Input
For NRZ without noise, all the bits that are transmitted are successfully received
indicating number of errors (noe variable) in MATLAB to be zero and
consequently the bit error rate is found to zero (when there is no noise in
channel).
For NRZ with AWGN noise, there will be some significant changes in the bits
received resulting in error. The number of errors and bit error rate are found out
and is NOT equals to zero for this case.
For plotting of simulated bit error rate and theoretical bit error rate, both plots
are in same figure indicated by legends in the right most corner of the figure.
The above waveform is for NRZ pulse in presence of AWGN noise. The output
displayed det = detected output bits and x = original bit stream :
The above result is obtained for SNR (in dB) = -10dB. The number of errors
found = 12 out of 20 bits leading to a bit error rate = 0.600 (as shown in the
image in the previous page).
The above image indicates the plot comparison of Pe vs SNR for both simulated
and theoretical results.
r1(i) = y(i).*x1(j); % each message of Tb =1 is multiplied with basis signal and accumulated
ant =[ant r1(i)];
ds(h) = sum(ant);
j=j+1;
else
h = h+1;
ant=[];
ds(h) = 0;
j=1;
end
end