bpskprobplot.m

来自「压缩文件中是Error Correction Coding - Mathemat」· M 代码 · 共 70 行

M
70
字号
% set up stuff for bpskprob% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyP0 = 0.5;  % =P(+Eb)P1 = 1-P0;  % P(-Eb)R = 1;bpskprob;figure(1);clfsemilogy(snrlist,plist);xh=xlabel('E_b/N_0 (dB)');yh = ylabel('Probability of bit error');grid onset(gca,'fontsize',15)set(xh,'fontsize',15)set(yh,'fontsize',15)print -dps bpskprob.psfigure(2);clfsemilogy(snrlist,plist);  % plot the old rate 1 stuffgrid ondrawnow hold on;P0 = 0.5;  % =P(+Eb)P1 = 1-P0;  % P(-Eb)R = 1/2;bpskprob;semilogy(snrlist,plist,'--');P0 = 0.5;  % =P(+Eb)P1 = 1-P0;  % P(-Eb)R = 1/3;bpskprob;semilogy(snrlist,plist,'-.');xh=xlabel('E_b/N_0 (dB)');yh = ylabel('Probability of bit error');set(gca,'fontsize',15)set(xh,'fontsize',15)set(yh,'fontsize',15)legend('Rate R=1','Rate R=1/2', 'Rate R=1/3')print -dps bpskprobR.psreturn; hold on;P0 = 0.25;  % =P(+Eb)P1 = 1-P0;  % P(-Eb)bpskprob;semilogy(snrlist,plist,'--');hold on;P0 = 0.1;  % =P(+Eb)P1 = 1-P0;  % P(-Eb)bpskprob;semilogy(snrlist,plist,':');

⌨️ 快捷键说明

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