Question: use matlab code to solve MATLAB grader problem: R HW5_2 Given the circuit shown at right. Using Kirchoff's voltage law, the following equations are obtained:

use matlab code to solveuse matlab code to solve MATLAB grader problem: R HW5_2 Given the

MATLAB grader problem: R HW5_2 Given the circuit shown at right. Using Kirchoff's voltage law, the following equations are obtained: -V1 + R211 + R414 = 0 -R414 + Rziz + R is = 0 -Rois + Ruiz + 12 = 0 Then, by conservation of charge 11 = 12 + 14 z = iz tis We now have five equations to solve for the five currents Let Vi=100 and V2=50. Write a function M-file that takes as input 5 resistors in an array and returns the 5 currents in an array as output. Your code should be placing the equations in matrix form and using the backslash to solve. For example: >> R=[5 100 200 150 250] * 1000 kOhm >> curr = LoopCurrent (R) ans = 1.0e-03 + 0.9544 0.3195 0.0664 0.6349 0.2531

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!