首页 > 其他 > 详细

CCS - Channel Capacity and Coding - Channel Model and Channel Capacity - AWGN Channel

时间:2020-09-28 23:26:10      阅读:50      评论:0      收藏:0      [点我收藏+]

 

技术分享图片

 

 

 

Matlab Coding

技术分享图片

 

 

 技术分享图片

 

 

 

 技术分享图片

 


 

 1 % MATLAB script for Illustrative Problem 10.2.
 2 echo on
 3 pn0_db=[-20:0.1:30];
 4 pn0=10.^(pn0_db./10);
 5 capacity=3000.*log2(1+pn0/3000);          # equation 10.2.5
 6 pause % Press a key to see a plot of channel capacity vs. P/N0.
 7 clf
 8 semilogx(pn0,capacity)
 9 title(Capacity vs. P/N0 in an AWGN channel)
10 xlabel(P/N0)
11 ylabel(Capacity (bits/second))
12 clear
13 w=[1:10,12:2:100,105:5:500,510:10:5000,5025:25:20000,20050:50:100000];
14 pn0_db=25;
15 pn0=10^(pn0_db/10);
16 capacity=w.*log2(1+pn0./w);              # equation 10.2.5
17 pause % Press a key to see a plot of channel capacity vs. bandwidth.
18 clf
19 semilogx(w,capacity)
20 title(Capacity vs. bandwidth in an AWGN channel)
21 xlabel(Bandwidth (Hz))
22 ylabel(Capacity (bits/second))


Simulation Result
  a plot of channel capacity vs. P/N0
  技术分享图片
  
  a plot of channel capacity vs. bandwidth
  技术分享图片

 

Reference,

  1. <<Contemporary Communication System using MATLAB>> - John G. Proakis

CCS - Channel Capacity and Coding - Channel Model and Channel Capacity - AWGN Channel

原文:https://www.cnblogs.com/zzyzz/p/13747246.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!