zoukankan      html  css  js  c++  java
  • CCS

    Channel Capacity and Coding

    The objective of any communication system is to transmit information generated by an
    information source from one location to another. The medium over which information
    is transmitted is called the communication channel. We have already seen
    that the information content of a source is measured by the entropy of the source, and
    the most common unit for this quantity is bits. We have also seen that an appropriate
    mathematical model for an information source is a random process.

    Channel Model and Channel Capacity

    A communication channel transmits the information-bearing signal to the destination.
    In this transmission, the information-carrying signal is subject to a variety of changes.
    Some of these changes are deterministic in nature-for example, attenuation and linear
    and nonlinear distortion-and some are probabilistic-for example, addition of noise,
    multipath fading, and so on. Because deterministic changes can be considered as special
    cases of random changes, in the most general sense the mathematical model for a 

    communication channel is a stochastic dependence between the input and the output
    signals.

    Channel Model

    Channel Capacity

     

     

    Matlab Coding

     

     
     1  % MATLAB script for Illustrative Problem 10.1.
     2 echo on
     3 gamma_db=[-20:0.1:20];
     4 gamma=10.^(gamma_db./10);
     5 p_error=q(sqrt(2.*gamma));                       # equation 10.2.8
     6 capacity=1.-entropy2(p_error);                   # equation 10.2.3
     7 pause % Press a key to see a plot of error probability vs. SNR/bit.
     8 clf
     9 semilogx(gamma,p_error)
    10 xlabel('SNR/bit')
    11 title('Error probability versus SNR/bit')
    12 ylabel('Error Prob.')
    13 pause % Press a key to see a plot of channel capacity vs. SNR/bit.
    14 clf
    15 semilogx(gamma,capacity)
    16 xlabel('SNR/bit')
    17 title('Channel capacity versus SNR/bit')
    18 ylabel('Channel capacity')


    Simulation Result

     a plot of error probability vs. SNR/bit
     a plot of channel capacity vs. SNR/bit

    Reference,

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

  • 相关阅读:
    P2761 软件补丁问题
    CF1335F Robots on a Grid
    [bzoj2088]P3505 [POI2010]TEL-Teleportation
    CF1335E Three Blocks Palindrome
    P3831 [SHOI2012]回家的路
    P4568 [JLOI2011]飞行路线(分层图)
    P4774 [NOI2018]屠龙勇士
    P2480 [SDOI2010]古代猪文
    CF #632 (Div. 2) 对应题号CF1333
    BSGS 和扩展
  • 原文地址:https://www.cnblogs.com/zzyzz/p/13747115.html
Copyright © 2011-2022 走看看