summaryrefslogtreecommitdiff
path: root/3446/CH4/EX4.5
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3446/CH4/EX4.5
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 '3446/CH4/EX4.5')
-rw-r--r--3446/CH4/EX4.5/Ex4_5.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3446/CH4/EX4.5/Ex4_5.sce b/3446/CH4/EX4.5/Ex4_5.sce
new file mode 100644
index 000000000..bc3778440
--- /dev/null
+++ b/3446/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,27 @@
+// Exa 4.5
+// To determine choice of modulation scheme if no-error correction coding is used.
+
+clc;
+clear all;
+
+S_No=53; //dB-Hz
+R=9.6*10^3; //bps
+BW=4.8*10^3; //Khz
+Pb=10^-5; //BER<=10^-5;
+
+//solution
+disp("Since the required data rate of 9.6 kbps is more than the available bandwidth of 4.8 kHz, the channel is bandwidth-limited.");
+Eb_No=S_No-10*log10(R); //dB
+// Try for 8-PSK modulation scheme
+M=8;
+Ps=log2(M)*Pb; //Max ps
+Es_No=log2(M)*10^(0.1*Eb_No);
+//Ps(8)=2*Q(sqrt(2*Es_No)*sin(%pi/8));
+//2*Q(sqrt(2*Eb_No))=erfc(sqrt(Eb_No)); //Refer EQn C(7) from appendix C
+
+Ps8=erfc(sqrt(Es_No)*sin(%pi/8));
+disp("");
+printf(' Symbol error rate is given as %.5f \n ',Ps);
+printf('The ratio of signal energy to noise is %.2f \n ',Es_No);
+printf('Symbol error rate for 8-PSK is %.5f \n ',Ps8);
+disp("As symbol error rate for 8-PSK modulation is lower than threshold value. so, We can use 8-PSK modulation.")