bers_dscdma.m

来自「无线通信CDMA」· M 代码 · 共 25 行

M
25
字号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Show the BER of BPSK, QPSK, 16-QAM over AWGN channel
% 
% Liang, Siwen
% 13/02/06

clear;
figure (1);
clf;
DSCDMA_cor;
color=['b*-';'g*-';'r*-';'c*-';'m*-';'y*-';'k*-'];
%h(1)=semilogy(SNRdB,BER_BPSK(1,:),'b*');hold on;

for i=1:7;
    h(i)=semilogy(SNRdB,BER_BPSK(i,:),color(i,:));hold on;
end

h12=plot(SNRdB,Q_BPSK,'b--');
axis([0 30 10^(-6) 1]);
grid on;
%legend([h11;h12;h21;h22;h31;h32],'BPSK simulation','BPSK theory','QPSK simulation','QPSK theory','16QAM simulation','16QAM theory');

title('BER of DS-CDMA BPSK AWGN');
xlabel('SNR (dB)');
ylabel('BER ');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?