⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plotcapcmp.m

📁 压缩文件中是Error Correction Coding - Mathematical Methods and Algorithms(Wiley 2005)作者:(Todd K. Moon )的配
💻 M
字号:
% plot and compare the capacity of the AWGNC and the BAWGNC% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlysnr = 0.001:0.25:6.001;  % signal to noise ratio of Ec/sigma^2cawgnc = [];cbawgnc = [];cbsc = [];for s = snr  cawgnc = [cawgnc cawgnc2(s)];  cbawgnc = [cbawgnc cbawgnc2(s)];  p = qf(sqrt(s));  cbsc = [cbsc 1-h2(p)];endclfplot(snr,cawgnc);hold on;plot(snr,cbawgnc,'--');plot(snr,cbsc,'-.');xh = xlabel('E_c/\sigma^2');yh = ylabel('Capacity (bits/channel use)');axis([0 6 0 1.5])drawnowlh = legend('AWGNC Capacity', 'BAWGNC Capacity','BSC capacity');set(gca,'fontsize',15);set(xh,'fontsize',15);set(yh,'fontsize',15);set(lh,'fontsize',15);grid oninput('press return to save');print -dps capcmp.ps

⌨️ 快捷键说明

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