write a MatLab program using array and vector mathematics and manipulation to pe
ID: 1996032 • Letter: W
Question
write a MatLab program using array and vector mathematics and manipulation
to perform the following actions:
1. Solve for the 3 unknown currents I1, I2, & I3
2. Using these 3 currents determine the average current Iavg
3. Using Iavg and 3 circuit equations determine the Req for each loop such that all 3 currents I1, I2, & I3 are
equal to Iavg
R = 11 3 0
3 6 1
0 -1 3
I = I1
I2
I3 (CURRENT)
V = 30
5
25
The 3 circuit equations are as follows:
11*I1 - 3*I2 = 30
-3*I1 +6*I2 - 1*I3 = 5
-1*I2 + 3*I3 = - 25
Explanation / Answer
>> r=[11 -3 0; -3 6 -1; 0 -1 3];
>> v=[30;5;-25];
>> i=inv(r)*v
i =
3.0000
1.0000
-8.0000
>> mean(i)
ans =
-1.3333
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.