Code covered by the BSD License  

Highlights from
AM_communication_blocks_codes

image thumbnail

AM_communication_blocks_codes

by

 

AM & other communication systems basic blocksets

SNR_Pe.m
%This calculates probability of error vs SNR (from 1 to 25)

SNR= 1:25;
M=16;
N=log2(M);

Pe_1toPe_3=0.5*erfc(sqrt(SNR));
Pe_4= 2*erfc(sqrt(0.4*SNR));
Pe_5= 0.5*erfc(sqrt(pi*pi*SNR/16));
Pe_6= erfc(sqrt(N*SNR)*sin(pi/M));
Pe_7= ((M-1)/2)*erfc(sqrt(N*SNR/2));

plot(SNR, Pe_1toPe_3,SNR,Pe_4,SNR,Pe_5,SNR,Pe_6,SNR,Pe_7);
legend('BPSK,QPSK,MSK', '16-MPSK', 'QPR', '16-MPSK', '16OrthoMFSK');
xlabel('Eb/ita')
ylabel('Pe')

Contact us