manik045
Newbie level 6
Hi i have a problem in my qpsk code in matlab that is given below
plot(abs([Qpsk Qpsk_r])),axis([0 Ns -1 16]),
legend('AWGN','RAYLEIGH'),
title('QPSK in AWGN & Rayleigh fading channel')
It shows the warning below
Warning: Ignoring extra legend entries.
> In legend at 290
In uhguasijfgdfjuf at 39
I could not find the problem where it is in my code.
Here is another problem
d1=find(r1>=0);d2=find(r1<0);
r1(d1)=1;r1(d2)=-1;
d1=find(r2>=0);d2=find(r2<0);
r2(d1)=1;r2(d2)=-1;
if l==1 & k==1,
plot([r1 r2])
legend('AWGN','Rayleigh'),
axis([0 Ns -1 4]),%here Ns=200
title('demodulated symbols after hard decisions')
This is the code for to get the desired received signal after noise removed. The noise is given for AWGN and Rayleigh.
It shows only a horizontal line in plot.
Any kind of help will be appreciated. Thanks
plot(abs([Qpsk Qpsk_r])),axis([0 Ns -1 16]),
legend('AWGN','RAYLEIGH'),
title('QPSK in AWGN & Rayleigh fading channel')
It shows the warning below
Warning: Ignoring extra legend entries.
> In legend at 290
In uhguasijfgdfjuf at 39
I could not find the problem where it is in my code.
Here is another problem
d1=find(r1>=0);d2=find(r1<0);
r1(d1)=1;r1(d2)=-1;
d1=find(r2>=0);d2=find(r2<0);
r2(d1)=1;r2(d2)=-1;
if l==1 & k==1,
plot([r1 r2])
legend('AWGN','Rayleigh'),
axis([0 Ns -1 4]),%here Ns=200
title('demodulated symbols after hard decisions')
This is the code for to get the desired received signal after noise removed. The noise is given for AWGN and Rayleigh.
It shows only a horizontal line in plot.
Any kind of help will be appreciated. Thanks