summaryrefslogtreecommitdiff
path: root/851/CH7/EX7.4.7.20
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /851/CH7/EX7.4.7.20
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 '851/CH7/EX7.4.7.20')
-rwxr-xr-x851/CH7/EX7.4.7.20/Table7_4_Figure7_20.sce44
1 files changed, 44 insertions, 0 deletions
diff --git a/851/CH7/EX7.4.7.20/Table7_4_Figure7_20.sce b/851/CH7/EX7.4.7.20/Table7_4_Figure7_20.sce
new file mode 100755
index 000000000..281d99507
--- /dev/null
+++ b/851/CH7/EX7.4.7.20/Table7_4_Figure7_20.sce
@@ -0,0 +1,44 @@
+//clear//
+//Caption:Comparison of error probability of different data transmission schemes
+//Table7.4:Figure 7.20
+//Comparison of Symbol Error Probability
+//of Different Digital Transmission System
+clear;
+close;
+clc;
+//Eb = Energy of the bit No = Noise Spectral Density
+Eb_No =[18,0.3162278];
+x = Eb_No(2):1/100:Eb_No(1);
+x_dB = 10*log10(x);
+for i = 1:length(x)
+ //Error Probability of Coherent BPSK
+ Pe_BPSK(i) = (1/2)*erfc(sqrt(x(i)));
+ //Error Probability of Coherent BFSK
+ Pe_BFSK(i) = (1/2)*erfc(sqrt(x(i)/2));
+ //Error Probability Non-Coherent PSK = DPSK
+ Pe_DPSK(i) = (1/2)*exp(-x(i));
+ //Error Probability Non-Coherent FSK
+ Pe_NFSK(i) = (1/2)*exp(-(x(i)/2));
+ //Error Probability of QPSK & MSK
+ Pe_QPSK_MSK(i) = erfc(sqrt(x(i)))-((1/4)*(erfc(sqrt(x(i)))^2));
+end
+a = gca();
+a.data_bounds=[-5,0;12.5,0.5];
+plot2d(x_dB,Pe_BPSK)
+plot2d(x_dB,Pe_BFSK)
+poly1= a.children(1).children(1);
+poly1.foreground = 3;
+plot2d(x_dB,Pe_DPSK)
+poly1= a.children(1).children(1);
+poly1.foreground = 4;
+plot2d(x_dB,Pe_NFSK)
+poly1= a.children(1).children(1);
+poly1.foreground = 6;
+plot2d(x_dB,Pe_QPSK_MSK)
+poly1= a.children(1).children(1);
+poly1.foreground = 7;
+xlabel('Eb/No in dB ---->')
+ylabel('Probability of Error Pe--->')
+title('Comparison of Noise Performance of different PSK & FSK Scheme')
+legend(['BPSK','BFSK','DPSK','Non-Coherent FSK','QPSK & MSK'])
+xgrid(1)