saeddawoud
Full Member level 3
BER of BPSK
Hello,
I am trying to plot the BER of BPSK, but it does not work correctly, I do not know why. I am using the following code:
If PSK substituted by dpsk, the theoritical and empirical curves are almost the same, where it is not the case for the psk. I think it has to do with phase or something like that. How can I solve this problem?
Thanks in advance
Hello,
I am trying to plot the BER of BPSK, but it does not work correctly, I do not know why. I am using the following code:
Code:
M=2;
chan=rayleighchan(1/10000,100);
tx=randint(50000,1,M);
txSig=pskmod(tx,M);
y=filter(chan,txSig);
SNR=0:2:20;
for n=1:length(SNR)
rxSig=awgn(y,SNR(n));
rx=pskdemod(rxSig,M);
[nErrors,BER(n)]=biterr(tx,rx);
end
BERtheory = berfading(SNR,'psk',M,1);
semilogy(SNR,BER,'k-*',SNR,BERtheory,'r');
If PSK substituted by dpsk, the theoritical and empirical curves are almost the same, where it is not the case for the psk. I think it has to do with phase or something like that. How can I solve this problem?
Thanks in advance