294 Practical MATLAB® Applications for Engineers
ANALYTICAL Solution
The two node equations are
for node V 1 : (2 − j)V 1 + jV 2 = 5 ∠0°
for node V 2 : jV 1 + (4 − j4)V 2 = − 6 ∠−90°The matrix node equation is given by2
4450
6901
2
jj
jjV
V
∠
∠
* The aforementioned matrix equation can be expressed as [Y] * [V] = [I], whereYjj
jj
2
44
andI
50
690∠
∠
where the phasor current sources are converted to complex numbers as5 ∠ 0 ° = 5 and − 6 ∠− 90 ° = −(−j6) = j6MATLAB Solution
% Script file: nodes
disp(‘*****************************************************’)
disp(‘ System Matrices ’)
disp(‘*****************************************************’)
disp(‘The admittance matrix Y is given by:’)
Y = [2-j j;j 4-4*j]
disp(‘The current matrix I is given by:’)
I = [5;j*6]
disp(‘******************************************************’)
disp(‘ Node voltages ’)
disp(‘*****************************************************’)2
4V 1 V 25
6j 3−j 4j −j 3−j0 °A
− 90 °AFIGURE 3.73
Network of Example 3.15.