资 源 简 介
M=4;K=2;out=randi([0,M-1],1e6,1);mod=modem.pskmod(M,pi/M);ranmod=modulate(mod,out);demod=modem.pskdemod(mod);BER_P = []; for ebno=0:12 ynoise = awgn(ranmod,ebno,"measured"); Fdemod=demodulate(demod,ynoise); numberbit=biterr(out,Fdemod); BER_P=[BER_P,numberbit/1e6];endebno = 0:12;BER_T=berawgn(ebno,"psk",M,"nondiff");