diff options
Diffstat (limited to '1655/CH1/EX1.10.1/Example_1_10_1.sce')
-rwxr-xr-x | 1655/CH1/EX1.10.1/Example_1_10_1.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1655/CH1/EX1.10.1/Example_1_10_1.sce b/1655/CH1/EX1.10.1/Example_1_10_1.sce new file mode 100755 index 000000000..9b613e756 --- /dev/null +++ b/1655/CH1/EX1.10.1/Example_1_10_1.sce @@ -0,0 +1,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);
|