Question: HW4_2 Given the circuit shown at right. Equations for the three loops are written as follows loop 1 R1(i iz) + R2(i iz) = V1

 HW4_2 Given the circuit shown at right. Equations for the threeloops are written as follows loop 1 R1(i iz) + R2(i iz)

HW4_2 Given the circuit shown at right. Equations for the three loops are written as follows loop 1 R1(i iz) + R2(i iz) = V1 loop 2 Rziz +R4(iz iz) + R1(iz 11) = V2 loop 3 Riz + R4(iz iz) + R2(iz i1) = V3 V RIO V + Let V1=10, V220 and V3=100. Write a function M-file that takes as input 5 resistors in an array, and returns the 3 currents in an array as output R = 30 Your code should be placing the equations in matrix form and using the backslash to solve. For example: >> R=[20 10 25 10 30] >> curr = LoopCurrent (R) ans = 2.4700 1.7800 2.8500 Loop currents in a circuit O solutions submitted (max: Unlimited) problem 4_2 Function C Reset MATLAB Documentation function i = LoopCurrent(R) W NP %compute loop currents in a circuit % i = LoopCurrent(R) % INPUT R: five resistors in the circuit 6 % OUTPUT i: three loop currents a 000 end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!