📄 repcoderes.m
字号:
% plot results from repcode simulation program testrepcode.cc% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research only% soft-decision decoding resultsrepcoderes3 = [ 0 0.08210180.5 0.05733941 0.05417121.5 0.04559962 0.03460212.5 0.03314553 0.02070823.5 0.01585294 0.01391794.5 0.008024395 0.006380815.5 0.003390066 0.001921056.5 0.001364357 0.0008294697.5 0.0004243568 0.0001834658.5 7.878e-059 3.37826e-059.5 1.24943e-0510 4.33268e-06];repcoderes11 = [0 0.06535950.5 0.06289311 0.05847951.5 0.05053062 0.03910832.5 0.02596053 0.02159363.5 0.01759944 0.01303784.5 0.009105815 0.005937545.5 0.003695496 0.002653086.5 0.001469337 0.0007742517.5 0.0004781338 0.0002018558.5 8.07666e-059 2.95929e-059.5 1.23578e-0510 3.46054e-06];% hard-decision decoding resultsrepcoderesH3 = [0 0.1184830.5 0.09587731 0.07898891.5 0.07530122 0.05688282.5 0.05073573 0.03898643.5 0.03246754 0.02755584.5 0.02054235 0.01920865.5 0.0126636 0.008274726.5 0.005794757 0.00314097.5 0.002035588 0.0009732558.5 0.0006442689 0.0003357629.5 0.0001402110 7.14826e-05];repcoderesH11 = [0 0.1212120.5 0.1081081 0.08319471.5 0.09174312 0.07751942.5 0.06105013 0.05740533.5 0.0446034 0.03298154.5 0.028865 0.02216315.5 0.01722366 0.01083196.5 0.00740967 0.004688677.5 0.003334118 0.001962528.5 0.001232679 0.0005869619.5 0.00033153210 0.000170123];snrlist = repcoderes3(:,1); snr = 10.^(snrlist/10);plist = qf(sqrt(2*snr(:)'));figure(1);clf;hlist = semilogy(snrlist,plist); % uncodedgrid onhold on;% soft decodinghlist = [hlist;semilogy(snrlist,repcoderes3(:,2),'o-')]; % rep n=3hlist = [hlist;semilogy(snrlist,repcoderes11(:,2),'s-')]; % rep n=11% hard decodinghlist = [hlist;semilogy(snrlist,repcoderesH3(:,2),'o--')]; % rep n=3hlist = [hlist;semilogy(snrlist,repcoderesH11(:,2),'s--')]; % rep n=11hl = legend(hlist,'Uncoded','Rep n=3, soft', 'Rep n=11, soft',... 'Rep n=3, hard','Rep n=11, hard');xh = xlabel('SNR, dB')yh = ylabel('Probability of bit error');set(gca,'fontsize',15);set(hl,'fontsize',15);set(xh,'fontsize',15);set(yh,'fontsize',15);print -dps repcodeprob.ps
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -