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 /851/CH7/EX7.02 | |
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 '851/CH7/EX7.02')
-rwxr-xr-x | 851/CH7/EX7.02/Figure7_02.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/851/CH7/EX7.02/Figure7_02.sce b/851/CH7/EX7.02/Figure7_02.sce new file mode 100755 index 000000000..23a2fee16 --- /dev/null +++ b/851/CH7/EX7.02/Figure7_02.sce @@ -0,0 +1,23 @@ +//clear//
+//Caption:Signal Space diagram for coherent BPSK
+//Figure7.2 Signal Space Diagram for coherent BPSK system
+clear
+clc;
+close;
+M =2;
+i = 1:M;
+y = cos(2*%pi+(i-1)*%pi);
+annot = dec2bin([length(y)-1:-1:0],log2(M));
+disp(y,'coordinates of message points')
+disp(annot,'Message points')
+figure;
+a =gca();
+a.data_bounds = [-2,-2;2,2];
+a.x_location = "origin";
+a.y_location = "origin";
+plot2d(real(y(1)),imag(y(1)),-9)
+plot2d(real(y(2)),imag(y(2)),-5)
+xlabel(' In-Phase');
+ylabel(' Quadrature');
+title('Constellation for BPSK')
+legend(['message point 1 (binary 1)';'message point 2 (binary 0)'],5)
|