Example 07
abs( ); angle( ); linspace( , );
GIVEN: Electrical Circuit:
0.5v1 - 0.5v2 + 0v3 = -1
-0.5v1 + (0.5+0.2j+1/10j)v2 - (1/10j) = 0
0v1 - (1/10j)v2 + (1/10+1/10j)v3 = 0
REQUIRED: Find the voltage at each node.
SOLUTION: Generate example07.m
a(1,1)=1/2;
a(1,2)=-1/2;
a(1,3)=0.0;
a(2,1)=a(1,2);
a(2,2)=1/2 + 0.2j + 1/10j;
a(2,3)=-1/10j;
a(3,1)=0;
a(3,2)=-1/10j;
a(3,3)=1/10 + 1/10j;
b=[-1; 0; 0];
v=a\b;
vmag=abs(v)
vphase=angle(v)
theta=linspace(0,2*pi);
v1=vmag(1)*cos(theta-vphase(1));
v2=vmag(2)*cos(theta-vphase(2));
v3=vmag(3)*cos(theta-vphase(3));
vphase=angle(v)*180/pi;
thd=theta*180/pi;
plot(thd,v1,thd,v2,thd,v3)
legend('v1','v2','v3')
gtext('v1')
gtext('v2')
gtext('v3')
Example
Please send questions or suggestions about this web page to beatnic@aset.psu.edu
ASET | ITS | Penn State
|