Question: This is a matlab question. If possible please include code and answers. Thank you! Ive got a circuit with two batteries, and Kirchoffs laws give
This is a matlab question. If possible please include code and answers. Thank you!
Ive got a circuit with two batteries, and Kirchoffs laws give me the equations
i1 + i2 = i3
V1 i1R1 i3R3 = 0
V2 i2R2 i3R3 = 0
The circuit has R1 = 10, R2 = 20, and R3 = 40. The first battery has a fixed voltage V1 = 35V , but the second battery can be adjusted to anything between 20V and 60V . Write a .m function file called circuit.m that takes V2 as an input and produces an array containing i1, i2, and i3 as an output. The function must use the backslash operator to solve the linear system. Use your function to find the currents in the circuit if V2 = 55.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
