Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given the circuit in figure 1 write a MatLab program using array and vector math

ID: 1996176 • Letter: G

Question

Given the circuit in figure 1 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 The 3 circuit equations are as follows:

11*I1 - 3*I2 = 30

-3*I1 +6*I2 - 1*I3 = 5

-1*I2 + 3*I3 = - 25

From these we get the following matrices

R=11-30 -36-1 0-1 1-11 13 V = 30 -25 vs1 301 RI vs2 ct16w--tD ju vs3 20v t,111 RI 0-3 300-=- 13 200 11 05 123 352

Explanation / Answer

Matlab Code:

>> R

R =

11 -3 0
-3 6 -1
0 -1 3

>> V = [30;5;-25];
>> I = RV %finds the values of currents

I =

3.0000
1.0000
-8.0000

>> avg = (I(1)+I(2)+I(3))/3%finds the avg of currents

avg =

-1.3333

>> Req1 = 30/(avg)

Req1 =

-22.5000%resistance value won't be negative but 22.5 ohms is Req

>> Req2 = 5/(avg)

Req2 =

-3.7500%3.75 ohms

>> Req3 = -25/(avg)

Req3 =

18.7500

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote