diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1574/CH15 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1574/CH15')
-rwxr-xr-x | 1574/CH15/EX15.1/BIT_Ex_15_1.sce | 10 | ||||
-rwxr-xr-x | 1574/CH15/EX15.1/Result_of_Chapter_15_Ex15_1.JPG | bin | 0 -> 129094 bytes | |||
-rwxr-xr-x | 1574/CH15/EX15.2/BIT_Ex_15_2.sce | 10 | ||||
-rwxr-xr-x | 1574/CH15/EX15.2/Result_of_Chapter_15_Ex15_2.JPG | bin | 0 -> 129038 bytes | |||
-rwxr-xr-x | 1574/CH15/EX15.3/BIT_Ex_15_3.sce | 17 | ||||
-rwxr-xr-x | 1574/CH15/EX15.3/Result_of_Chapter_15_Ex15_3.JPG | bin | 0 -> 132752 bytes |
6 files changed, 37 insertions, 0 deletions
diff --git a/1574/CH15/EX15.1/BIT_Ex_15_1.sce b/1574/CH15/EX15.1/BIT_Ex_15_1.sce new file mode 100755 index 000000000..9a60b6e55 --- /dev/null +++ b/1574/CH15/EX15.1/BIT_Ex_15_1.sce @@ -0,0 +1,10 @@ +clc
+//Chapter15
+//Example15.1, page no 533
+//Given
+P_A=0.5// probability of producing symbol 'A'
+P_B=0.25// probability of producing symbol 'B'
+P_C=0.25// probability of producing symbol 'C'
+H=P_A*log2(1/P_A)+P_B*log2(1/P_B)+P_C*log2(1/P_C)// the source entropy
+mprintf('The source entropy is: %f bits/symbol',H)
+
diff --git a/1574/CH15/EX15.1/Result_of_Chapter_15_Ex15_1.JPG b/1574/CH15/EX15.1/Result_of_Chapter_15_Ex15_1.JPG Binary files differnew file mode 100755 index 000000000..4a02a8791 --- /dev/null +++ b/1574/CH15/EX15.1/Result_of_Chapter_15_Ex15_1.JPG diff --git a/1574/CH15/EX15.2/BIT_Ex_15_2.sce b/1574/CH15/EX15.2/BIT_Ex_15_2.sce new file mode 100755 index 000000000..c0cf3bfc6 --- /dev/null +++ b/1574/CH15/EX15.2/BIT_Ex_15_2.sce @@ -0,0 +1,10 @@ +clc
+//Chapter15
+//Example15.2, page no 535
+//Given
+P_A=0.5,P_B=0.25,P_C=1/32,P_D=1/8,P_E=1/16,P_F=1/32// probabilities of producing respective symbol
+H=(P_A*log2(1/P_A))+(P_B*log2(1/P_B))+(P_C*log2(1/P_C))+(P_D*log2(1/P_D))+(P_E*log2(1/P_E))+(P_F*log2(1/P_F))// Source Entropy
+n=6,T=1
+mprintf('The source entropy is: %f bits/symbol',round(1000*H)/1000)
+
+
diff --git a/1574/CH15/EX15.2/Result_of_Chapter_15_Ex15_2.JPG b/1574/CH15/EX15.2/Result_of_Chapter_15_Ex15_2.JPG Binary files differnew file mode 100755 index 000000000..c2deb8d6c --- /dev/null +++ b/1574/CH15/EX15.2/Result_of_Chapter_15_Ex15_2.JPG diff --git a/1574/CH15/EX15.3/BIT_Ex_15_3.sce b/1574/CH15/EX15.3/BIT_Ex_15_3.sce new file mode 100755 index 000000000..f510b94b1 --- /dev/null +++ b/1574/CH15/EX15.3/BIT_Ex_15_3.sce @@ -0,0 +1,17 @@ +// the Answer in the book is wrong.It is printed as 90.4 for SNR3 but it should be 100.59
+clc
+//Chapter15
+//Example15.3, page no 536
+//Given
+//a
+B1=4e3//Channel Bandwidth
+SNR1=31//Channel SNR
+C1=B1*log2(1+SNR1)//Channel Capacity
+SNR2=14//Reduced SNR
+B2=round(C1/log2(1+SNR2))//Bandwidth for reduced SNR with same Channel capacity
+
+//b
+B3=3e3//Reduced Bandwidth
+SNR3=(2^(C1/B3))-1//Signal Power for reduced bandwidth
+mprintf('a)\n Channel capacity is: %d Kbits/sec\n Bandwidth: %d KHz\nb)\n SNR for 3KHz bandwidth: %f',C1*1e-3,B2*1e-3,SNR3)
+
diff --git a/1574/CH15/EX15.3/Result_of_Chapter_15_Ex15_3.JPG b/1574/CH15/EX15.3/Result_of_Chapter_15_Ex15_3.JPG Binary files differnew file mode 100755 index 000000000..2a7168459 --- /dev/null +++ b/1574/CH15/EX15.3/Result_of_Chapter_15_Ex15_3.JPG |