Matrix of an electric circuit Size 8 Coefficient Matrix A 1

Matrix of an electric circuit

Size
8
Coefficient Matrix A
-1 0 0 0 0 0 0 0
1 -1 0 0 0 0 0 0
0 1 -1 -1 0 0 0 0
-1 0 1 0 0 0 0 0
0 0 0 1 0 1 0 0
0 0 0 0 -1 0 0 0
18 10 16 0 0 0 0 0
0 -10 0 -6 -15 0 -12 0
RHS
0
0
0
0
0
0
20
0

Write a MATLAB program (script) that should do the following:

A). Read the circuit information in the file and place it in the appropriate matrices and vectors.

B). Solve the system of equations by inverting the matrix and obtain current values

Solution

A=[-1   0 0 0 0 0 0 0

   1   -1 0 0 0 0 0 0

   0    1 -1 -1 0 0 0 0

-1    0 1 0 0 0 0 0

   0    0 0 1 0 1 0 0

   0    0 0 0 -1 0 0 0

   18 10 16 0 0 0 0 0

   0 -10 0 -6 -15 0 -12 0];

RHS=[0

     0

     0

     0

    0

     0

     20

     0];

%I IS CURRENRT = INVERS(A)*RHS%

I=inv(A)*RHS

NOTE:WHILE DOING INVERSE WE GETTING DETERMENT IS ZERO THAT IS MATRIX IS SINGULAR WE CAN NOT INVERSE

Matrix of an electric circuit Size 8 Coefficient Matrix A -1 0 0 0 0 0 0 0 1 -1 0 0 0 0 0 0 0 1 -1 -1 0 0 0 0 -1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 -1 0 0 0
Matrix of an electric circuit Size 8 Coefficient Matrix A -1 0 0 0 0 0 0 0 1 -1 0 0 0 0 0 0 0 1 -1 -1 0 0 0 0 -1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 -1 0 0 0

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site