Beruflich Dokumente
Kultur Dokumente
Example is just for 2 bus system but please reduce the length using the loops. I got it from my supervisor
for better undersyanding try not to take the things from the program do it on your own way. Its just s very
basic structure.
>> rline=0.001;
>> xline=0.01;
>> bline=0.005;
>> y12=1/(rline+j*xline)
y12 =
9.9010 -99.0099i
>> Y=zeros(2,2)
Y=
0 0
0 0
>> Y(1,2)=-y12
Y=
>> Y(2,1)=Y(1,2)
Y=
Y=
>> Y(2,2)=y12+0.5*j*bline
Y=
>> Y1=Y;
>> h=3;
>> y12=1/(rline+j*h*xline)
y12 =
1.1099 -33.2963i
>> Y3=zeros(2,2)
Y3 =
0 0
0 0
>> Y3(1,2)=-y12
Y3 =
>> Y3(2,1)=Y3(1,2)
Y3 =
>> Y(1,1)=y12+0.5*j*bline*h
Y=
>> Y3(1,1)=y12+0.5*j*bline*h
Y3 =
>> clear Y
>> Y3(2,2)=y12+0.5*j*bline*h
Y3 =
>> Y5=zeros(2,2)
Y5 =
0 0
0 0
>> h=5
h=
>> y12=1/(rline+j*h*xline)
y12 =
0.3998 -19.9920i
>> Y5(1,2)=-y12
Y5 =
>> Y5(2,1)=Y5(1,2)
Y5 =
>> Y5(1,1)=y12+0.5*bline*h
Y5 =
>> Y5(2,2)=y12+0.5*bline*h
Y5 =
>> Z1=inv(Y1)
Z1 =
1.0e+02 *
>> Z3=inv(Y3)
Z3 =
>> Z5=inv(Y5)
Z5 =
40.0003 + 0.0125i 39.9997 - 0.0125i
39.9997 - 0.0125i 40.0003 + 0.0125i
zh =
>> h=[1 3 5]
h=
1 3 5
>> plot(h,Zh)
Undefined function or variable 'Zh'.
Did you mean:
>> plot(h,zh)
Another example