summaryrefslogtreecommitdiff
path: root/1655/CH1/EX1.10.1/Example_1_10_1.sce
blob: 9b613e7564321ccdb0333d66c7fe37453cf80ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Example 1.10.1  page 1.19

clc;
clear;

Bandwidth = 2d6;     //Bandwidth of channel
Signal_to_Noise_ratio = 1;              //Signal to Noise ratio of channel

Capacity = Bandwidth * log2(1 + Signal_to_Noise_ratio); //computing capacity
Capacity=Capacity/10^6;

printf("Maximum capacity of channel is %d Mb/sec.",Capacity);