summaryrefslogtreecommitdiff
path: root/2606/CH11/EX11.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2606/CH11/EX11.6
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 '2606/CH11/EX11.6')
-rwxr-xr-x2606/CH11/EX11.6/ex11_6.jpgbin0 -> 6332 bytes
-rwxr-xr-x2606/CH11/EX11.6/ex11_6.sce27
2 files changed, 27 insertions, 0 deletions
diff --git a/2606/CH11/EX11.6/ex11_6.jpg b/2606/CH11/EX11.6/ex11_6.jpg
new file mode 100755
index 000000000..86f23b393
--- /dev/null
+++ b/2606/CH11/EX11.6/ex11_6.jpg
Binary files differ
diff --git a/2606/CH11/EX11.6/ex11_6.sce b/2606/CH11/EX11.6/ex11_6.sce
new file mode 100755
index 000000000..82fc5c96e
--- /dev/null
+++ b/2606/CH11/EX11.6/ex11_6.sce
@@ -0,0 +1,27 @@
+//Page Number: 11.15
+//Example 11.6
+clc;
+//Given
+//Pdot-2*Pdash and Pdot+Pdash=1
+//Therfore, on solving
+Pdot=2/3;
+Pdash=1/3;
+
+tdot=0.2; //Sec
+tdash=0.6; //Sec
+tspace=0.2; //Sec
+
+//Finding H(X)
+//As H(X)=-Sum of[P(xi)log2P(xi)]
+//Where i=0 to n;
+HofX=(-1)*[{Pdot*log2(Pdot)}+{Pdash*log2(Pdash)}];
+
+//Average time per symbol
+Ts=(Pdot*tdot)+(Pdash*tdash)+tspace;
+
+//Average Symbol Rate
+r=1/Ts;
+
+//Average information rate
+R=r*HofX;
+disp('b/symbol',R,'Average information rate :');