Windows Command - Y - Barra

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

05/06/21 22:37 MATLAB Command Window 1 of 3

>> Y_Barra_2 = Y_Barra

Y_Barra_2 =

0.0000 - 9.8000i 0.0000 + 0.0000i 0.0000 + 4.0000i 0.0000 + 5.0000i


0.0000 + 0.0000i 0.0000 - 8.3000i 0.0000 + 2.5000i 0.0000 + 5.0000i
0.0000 + 4.0000i 0.0000 + 2.5000i 0.0000 -15.3000i 0.0000 + 8.0000i
0.0000 + 5.0000i 0.0000 + 5.0000i 0.0000 + 8.0000i 0.0000 -18.0000i

>> Y_Barra_2(4,4)=-18.2i

Y_Barra_2 =

0.0000 - 9.8000i 0.0000 + 0.0000i 0.0000 + 4.0000i 0.0000 + 5.0000i


0.0000 + 0.0000i 0.0000 - 8.3000i 0.0000 + 2.5000i 0.0000 + 5.0000i
0.0000 + 4.0000i 0.0000 + 2.5000i 0.0000 -15.3000i 0.0000 + 8.0000i
0.0000 + 5.0000i 0.0000 + 5.0000i 0.0000 + 8.0000i 0.0000 -18.2000i

>> I=I2
Unrecognized function or variable 'I2'.

>> I2=I

I2 =

0.0000 - 1.2000i
-0.7200 - 0.9600i
0.0000 - 1.2000i
0.0000 + 0.0000i

>> V=V2
Unrecognized function or variable 'V2'.

>> V2=V

V2 =

1.4111 - 0.2668i
1.3831 - 0.3508i
1.4059 - 0.2824i
1.4010 - 0.2971i

>> V2 = inv(Y_Barra_2)*I2

V2 =

1.3050 - 0.2443i
1.2775 - 0.3284i
1.2975 - 0.2594i
1.2798 - 0.2714i

>> X2=V2

X2 =
05/06/21 22:37 MATLAB Command Window 2 of 3

1.3050 - 0.2443i
1.2775 - 0.3284i
1.2975 - 0.2594i
1.2798 - 0.2714i

>> abs (X2)

ans =

1.3277
1.3190
1.3232
1.3083

>> angle(X2)

ans =

-0.1851
-0.2516
-0.1973
-0.2089

>> rad2deg(ans)

ans =

-10.6051
-14.4157
-11.3068
-11.9718

>> phase2=rad2deg(angle(X2))

phase2 =

-10.6051
-14.4157
-11.3068
-11.9718

>> length2 = abs(X2)

length2 =

1.3277
1.3190
1.3232
1.3083

>> length2 * cos(deg2rad(phase2))


Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in
the first matrix matches the number
of rows in the second matrix. To perform elementwise multiplication, use '.*'.
05/06/21 22:37 MATLAB Command Window 3 of 3

>> length2 *cos(deg2rad(phase2))


Unrecognized function or variable 'length2'.

>> length2 .* cos(deg2rad(phase2))

ans =

1.3050
1.2775
1.2975
1.2798

>> length2 .* sin(deg2rad(phase2))

ans =

-0.2443
-0.3284
-0.2594
-0.2714

>> length2 x cos(deg2rad(phase2))


Unrecognized function or variable 'length2'.

>> length2 . cos(deg2rad(phase2))


Unrecognized function or variable 'length2'.

>> length2 * cos(deg2rad(phase2))


Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in
the first matrix matches the number
of rows in the second matrix. To perform elementwise multiplication, use '.*'.

>> length2*cos(deg2rad(phase2))
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in
the first matrix matches the number
of rows in the second matrix. To perform elementwise multiplication, use '.*'.

>> length2 .* cos(deg2rad(phase2))

ans =

1.3050
1.2775
1.2975
1.2798

>>

You might also like