summaryrefslogtreecommitdiff
path: root/761/CH7/EX7.1/7_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /761/CH7/EX7.1/7_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '761/CH7/EX7.1/7_1.sce')
-rwxr-xr-x761/CH7/EX7.1/7_1.sce17
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