MATLAB code to plot the capacity of band limited AWGN channel with input constraint S and bandwidth B given by C=B log (1+S/N)

code:




    clc;
    s=input('enter signal power');
    w=input('enter the value of white power per unit bandwidth');
    b=0:0.1:100;
    d=w.*b;
    e=s./d;
    c=b.*log2(1+e);
    plot(b,c);
    xlabel('Bandwidth --->');
    ylabel('Capicaty--->');
    grid;



OUTPUT:

Enter signal power  45
Enter value of white power per unit bandwidth  5.
 

0 comments:

Post a Comment