summaryrefslogtreecommitdiff
path: root/3542/CH6/EX6.7/Ex6_7.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3542/CH6/EX6.7/Ex6_7.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3542/CH6/EX6.7/Ex6_7.sce')
-rw-r--r--3542/CH6/EX6.7/Ex6_7.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3542/CH6/EX6.7/Ex6_7.sce b/3542/CH6/EX6.7/Ex6_7.sce
new file mode 100644
index 000000000..e9a21276c
--- /dev/null
+++ b/3542/CH6/EX6.7/Ex6_7.sce
@@ -0,0 +1,24 @@
+// Example no 6.7
+// To determine the maximum theoretical datarate and to compare this rate to GSM standard
+// Page no. 280
+
+clc;
+clear all;
+
+// Given data
+SNR1=10; // Signal to noise ratio in dB
+SNR2=30; // Signal to noise ratio in dB
+B=200*10^3; // RF bandwidth of channel in Hz
+
+SNR1=10^(SNR1/10); // Signal to noise ratio
+SNR2=10^(SNR2/10); // Signal to noise ratio
+
+// To determine the maximum theoretical datarate
+C1=B*(log10(1+SNR1)/log10(2)); // The maximum theoretical datarate for SNR=10dB
+C2=B*(log10(1+SNR2)/log10(2)); // The maximum theoretical datarate for SNR=30dB
+
+// Displaying the result in command window
+printf('\n The maximum theoretical datarate for 10dB SNR = %0.3f kbps',C1*10^-3);
+printf('\n The maximum theoretical datarate for 30dB SNR = %0.2f Mbps',C2*10^-6);
+printf('\n \n The GSM data rate is 270.833 kbps, which is only about 40 percent of the theoretical limit of 10dB SNR condition\n and about 14 percent of theoretical limit of 30dB SNR condition');
+