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 /1895/CH11/EX11.19 | |
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 '1895/CH11/EX11.19')
-rwxr-xr-x | 1895/CH11/EX11.19/EXAMPLE11_19.SCE | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/1895/CH11/EX11.19/EXAMPLE11_19.SCE b/1895/CH11/EX11.19/EXAMPLE11_19.SCE new file mode 100755 index 000000000..1b0d7d0ff --- /dev/null +++ b/1895/CH11/EX11.19/EXAMPLE11_19.SCE @@ -0,0 +1,23 @@ +//ANALOG AND DIGITAL COMMUNICATION
+//BY Dr.SANJAY SHARMA
+//CHAPTER 11
+//Information Theory
+clear all;
+clc;
+printf("EXAMPLE 11.19(PAGENO 502)");
+//given
+//from fig
+P_X = [.5 .5]//x matrix
+P_Xd = [.5 0; 0 .5]//diagonal x matrix
+//calculations
+P_YX = [.9 .1; .2 .8];//yx matrix representation of given fig
+P_Y = P_X*P_YX//y matrix
+P_XY = P_Xd * P_YX//xy matrix
+
+//results
+printf("\n\ni.Channel matrix of the channelP_YX ");
+disp(P_YX);
+printf("\n\nii.a.P(y1) = %.2f",P_Y(1,1));
+printf("\n\n b.P(y2) = %.2f",P_Y(1,2));
+printf("\n\niii.a.P(x1,y2) = %.2f",P_XY(1,2));
+printf("\n\n b.P(x2,y1) = %.2f",P_XY(2,1));
|