summaryrefslogtreecommitdiff
path: root/3547/CH5/EX5.9/Ex5_9.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3547/CH5/EX5.9/Ex5_9.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3547/CH5/EX5.9/Ex5_9.sce')
-rw-r--r--3547/CH5/EX5.9/Ex5_9.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/3547/CH5/EX5.9/Ex5_9.sce b/3547/CH5/EX5.9/Ex5_9.sce
new file mode 100644
index 000000000..d61f84605
--- /dev/null
+++ b/3547/CH5/EX5.9/Ex5_9.sce
@@ -0,0 +1,31 @@
+// Example 5.9
+// To find the in-phase and quadrature components of the current of a polarization modulated (PM) QPSK signal
+// Page no. 241
+
+clc;
+clear;
+
+// Given data
+theta1=%pi/4;
+Sx=expm(%i*theta1); // Signal data in x-polarization
+theta2=(5*%pi)/4;
+Sy=expm(%i*theta2); // Signal data in y-polarization
+PLO=10; // Local oscillator power in mW from Example 5.8
+Pr=0.1585; // Power at receiver in mW from Example 5.8
+R=0.9; // Reflectivity
+
+// The complex photocurrent corresponding to x-polarization
+Ix= (R*sqrt(Pr*PLO))*Sx/2; // The complex photocurrent corresponding to x-polarization
+Iix=real(Ix); // In-phase component of phtocurrent corresponding to x-polarization
+Iqx=-imag(Ix); // Quadrature component of phtocurrent corresponding to x-polarization
+
+// The complex photocurrent corresponding to y-polarization
+Iy= (R*sqrt(Pr*PLO))*Sy/2; // The complex photocurrent corresponding to y-polarization
+Iiy=real(Iy); // In-phase component of phtocurrent corresponding to y-polarization
+Iqy=-imag(Iy); // Quadrature component of phtocurrent corresponding to y-polarization
+
+// Display result on command window
+printf('\n In-phase component of phtocurrent corresponding to x-polarization = %0.4f mA',Iix);
+printf('\n Quadrature component of phtocurrent corresponding to x-polarization = %0.4f mA',Iqx);
+printf('\n In-phase component of phtocurrent corresponding to y-polarization = %0.4f mA',Iiy);
+printf('\n Quadrature component of phtocurrent corresponding to y-polarization = %0.4f mA',Iqy);