summaryrefslogtreecommitdiff
path: root/1109/CH5/EX5.13/5_13.sce
blob: 3edb528dcf4a5a4cf002b3b35d2521f4a4097467 (plain)
1
2
3
4
5
6
7
8
clear;
clc;
B=3000; //B=band width
D=30; //D=ratio of signal power to noise power in db
P=10^(D/10); // P=converting D into a numerical ratio
A=fix(log2(1+P)*100)/100
C=B*A;
printf("Rate of transmission of information = %f bits/sec",C);