diff options
Diffstat (limited to '761/CH7/EX7.1/7_1.sce')
-rwxr-xr-x | 761/CH7/EX7.1/7_1.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/761/CH7/EX7.1/7_1.sce b/761/CH7/EX7.1/7_1.sce new file mode 100755 index 000000000..84fe3d369 --- /dev/null +++ b/761/CH7/EX7.1/7_1.sce @@ -0,0 +1,17 @@ +clc;
+//page no 285
+//prob no 7.1
+// In the given problem a signal is transmitted using a four level code
+M=4;
+B=3.2;// in KKz
+SNR=35;//in dB
+//By using Shannon-Hartley theorem, ignoring noise we have
+c=2*B*log2 (M);
+disp('kb/s',c,'maximum data rate for four-level code in the available bandwidth');
+//Now we have to use Shannon limit to find the maximum data rate for any code
+//SNR in power ratio is
+SNR1=10^(35/10);
+C=B*log2(1+SNR1);
+disp('kb/s',C,'maximum data rate for four-level code in the available bandwidth');
+// Both results are maxima, we have to choose lesser of the two.
+// Therefore we choose c=12.8kp/s
\ No newline at end of file |