Anda di halaman 1dari 6

%

17MIS7127
%
YARLAGADDA HEMANTH
%
L17+L18
%
08-08-2019

%PROBLEM 1
Z = [18 -4 -8; -4 12 -2 ;-8 -2 25 ];
V = [10 0 0]';
% solve for the loop currents
I = inv(Z)*V

I =

0.7341
0.2877
0.2579

Published with MATLAB® R2019a

1
%yarlagadda hemanth
%17MIS7127
%PROBLEM 2
Y=[3 0 -2 0 0;0 11 -6 -5 0;-15 -6 31 -10 0;0 -1 -2 3 0;0 0 0 0 1];
I=[12 -90 120 36 -48]';
V=inv(Y)*I

V =

40.0000
50.7857
54.0000
64.9286
-48.0000

Published with MATLAB® R2019a

1
%yarlagadda hemanth
%17MIS7127
%PROBLEM 3
A=[1 -2 -1;2 4 -4;0 4 -3];
B=[0 5 -7]';
I=linsolve(A,B)
fprintf("therefore")

I =

8.3750
1.8125
4.7500

therefore

Published with MATLAB® R2019a

1
%yarlagadda hemanth
%17MIS7127
%PROBLEM 4
A=[0 1 1 0 0 100;1 0 0 1 0 150;1 -1 0 0 -1 100;0 0 1 -1 -1 50]
b=rref(A)

A =

0 1 1 0 0 100
1 0 0 1 0 150
1 -1 0 0 -1 100
0 0 1 -1 -1 50

b =

1 0 0 1 0 150
0 1 0 1 1 50
0 0 1 -1 -1 50
0 0 0 0 0 0

Published with MATLAB® R2019a

1
%yarlagadda hemanth
%17MIS7127
%PROBLEM 5
a=[0 1 -1 0 100;1 -1 0 0 300;0 0 -1 1 500;-1 0 0 1 100]
b=rref(a)

a =

0 1 -1 0 100
1 -1 0 0 300
0 0 -1 1 500
-1 0 0 1 100

b =

1 0 0 -1 -100
0 1 0 -1 -400
0 0 1 -1 -500
0 0 0 0 0

Published with MATLAB® R2019a

1
%yarlagadda hemanth
%17MIS7127
%PROBLEM 6
a=[1 0 1 0 0 0 0 800;0 0 1 0 0 1 0 750;1 -1 0 1 0 0 0 200;0 0 0 1 0 1
-1 600;0 0 0 0 -1 0 1 50;0 1 0 0 -1 0 0 500]
b=rref(a)

a =

1 0 1 0 0 0 0 800
0 0 1 0 0 1 0 750
1 -1 0 1 0 0 0 200
0 0 0 1 0 1 -1 600
0 0 0 0 -1 0 1 50
0 1 0 0 -1 0 0 500

b =

1 0 0 0 0 -1 0 50
0 1 0 0 0 0 -1 450
0 0 1 0 0 1 0 750
0 0 0 1 0 1 -1 600
0 0 0 0 1 0 -1 -50
0 0 0 0 0 0 0 0

Published with MATLAB® R2019a

Anda mungkin juga menyukai