summaryrefslogtreecommitdiff
path: root/3547/CH5/EX5.8/Ex5_8.sce
blob: 1e0478f4bf26cdb49b6cd9c2d8d20b32af376234 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Example no.5.8
// To find the in-phase and quadrature components of the current of a balanced IQ receiver.
// Page no.238

clc;
clear;

// Given data
PLO=10;                                         // Local oscillator power in mW from Example 5.7a
Pr=0.1585;                                      // Power at receiver in mW
R=0.9;                                          // Responsivity in A/W
st=complex((-1/sqrt(2)),(1/sqrt(2)));           // The QPSK transmitted signal
Ii=R*sqrt(Pr*PLO)*real(st);                     // The in-phase component of the current in mA
Iq=-R*sqrt(Pr*PLO)*imag(st);                    // The quadrature component of the current in mA

// Display result on command window
printf('\n The in-phase component of the current = %0.4f mA',Ii)
printf('\n The quadrature component of the current = %0.4f mA',Iq)