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.6 | |
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.6')
-rwxr-xr-x | 851/CH7/EX7.6/Figure7_6.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/851/CH7/EX7.6/Figure7_6.sce b/851/CH7/EX7.6/Figure7_6.sce new file mode 100755 index 000000000..ca5b04ebd --- /dev/null +++ b/851/CH7/EX7.6/Figure7_6.sce @@ -0,0 +1,25 @@ +//clear//
+//Caption:Signal space diagram for coherent QPSK waveform
+//Figure7.6 Signal Space Diagram for coherent QPSK system
+clear
+clc;
+close;
+M =4;
+i = 1:M;
+y = cos((2*i-1)*%pi/4)-sin((2*i-1)*%pi/4)*%i;
+annot = dec2bin([0:M-1],log2(M));
+disp(y,'coordinates of message points')
+disp(annot,'dibits value')
+figure;
+a =gca();
+a.data_bounds = [-1,-1;1,1];
+a.x_location = "origin";
+a.y_location = "origin";
+plot2d(real(y(1)),imag(y(1)),-2)
+plot2d(real(y(2)),imag(y(2)),-4)
+plot2d(real(y(3)),imag(y(3)),-5)
+plot2d(real(y(4)),imag(y(4)),-9)
+xlabel(' In-Phase');
+ylabel(' Quadrature');
+title('Constellation for QPSK')
+legend(['message point 1 (dibit 10)';'message point 2 (dibit 00)';'message point 3 (dibit 01)';'message point 4 (dibit 11)'],5)
|