I've got a circuit with two batteries, and Kirchoff's laws give me the equations i1 + 12 = 13 V₁-i₁R₁13R3 = 0 V2-12R2-13R3 = 0 The circuit has R₁ = 1092, R₂ = 2092, and R3 = 4092. The first battery has a fixed voltage V₁ = 35V, but the second battery can be adjusted to anything between 20V and 60V. Write a .m function file called myCircuit.m that takes V₂ as an input and produces an array containing i, i2, and is as an output. That is, the output should be a single (vector-valued) variable. The function must use the backslash operator to solve the linear system.

Delmar's Standard Textbook Of Electricity
7th Edition
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Stephen L. Herman
Chapter17: Resistive-inductive Series Circuits
Section: Chapter Questions
Problem 16PP: An R-L series circuit contains two resistors and two inductors. The resistors are 86 k and 68 k ....
icon
Related questions
Question
I've got a circuit with two batteries, and Kirchoff's laws give me the equations
i₁ + 12 = 13
V₁₁R₁ - 13R3 = 0
V2-12R2 - 13R3 = 0
The circuit has R₁ = 109, R₂ = 209, and R3 = 409. The first battery has a fixed voltage V₁ = 35V, but the second battery can be adjusted to anything between
20V and 60V. Write a .m function file called myCircuit.m that takes V₂ as an input and produces an array containing i₁, i2, and i3 as an output. That is, the
output should be a single (vector-valued) variable. The function must use the backslash operator to solve the linear system.
Transcribed Image Text:I've got a circuit with two batteries, and Kirchoff's laws give me the equations i₁ + 12 = 13 V₁₁R₁ - 13R3 = 0 V2-12R2 - 13R3 = 0 The circuit has R₁ = 109, R₂ = 209, and R3 = 409. The first battery has a fixed voltage V₁ = 35V, but the second battery can be adjusted to anything between 20V and 60V. Write a .m function file called myCircuit.m that takes V₂ as an input and produces an array containing i₁, i2, and i3 as an output. That is, the output should be a single (vector-valued) variable. The function must use the backslash operator to solve the linear system.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Nodal analysis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning