Question

Matlab question:

Problem 1 (4 points) Resistive networks are well-represented by linear equations. Consider the DC circuit shown below Ra ia Figure 1 This problem can be converted into a system of simultaneous linear equations by applying Kirchhoffs law and Ohms law. In circuit design, i represents current (measured in amperes, A), V represents voltage (i n volts, V), and R represents resistance (in ohms, 2). Kirchhoffs law states that the sum of the currents entering a node is equal to the sum of the currents leaving the node. Applying Kirchoff s law to nodes 1 and 2 respectively yields the equations (1) 22 23 (2) 22 23 24 To apply Ohms law, we can use two separate pathways through the circuit in going from the positive side of the DC power source to the negative side: the inner circuit and the outermost circuit. In both cases, the sum of the current times the resistance is equal to the applied voltage Vi. The resulting equations are given as (3) 23 (4) 12 For this particular system, Vi has a value of 100 V, R1 has a value of 10 2. R has a value of 5 2. and R3 has a value of 10 2. The current values are the unknowns in this linear system of simultaneous linear equations. Analytically (ie. with paper and pencil), put this system into the matrix form Ar b, and use that result to enter the variables A and b into your program: you do not need to turn in your analytical work for determining what A and b are Once you have determined what A and b are, solve this system using the matrix inverse. Print the values of the temperatures to the Command Window with labels and units; do not use a loop to automate the printing process.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Explaination:

Given equations are:

i1 = i2 + i3                                            …… (1)

i2 + i3 = i4                                            …… (2)

i1 R1 + i3 R3 = V1                                          …… (3)

i1 R1 + i2 R2 = V1                                   …… (4)

Substitute equation (1) in equation (2), the result is:

i1 = i4                                                   …… (5)

From equation (1), i3 equals,

i3 = i1 – i2                                             …… (6)

Given, the value of Vi = 100 V, R,-10 Ω, R,-5 Ω, and R,-10 Ω

Substitute the values in the equation (3)

10 i1 + 10 i3 = 100

Substitute the equation (6)

10 ή + 10 (11-12) = 100 10ή + 10h-10i,-100 20 i1-10i,-100                                             

Substitute the values of R1, R3, R2, and V1 in the equation (4)

10 i1 + 5 i2 = 100                                  …… (8)

Convert the equation (7) and (8) in matrix form Ax = b where,

Ax = b form is:

20 -10 10 5 「100 100 Ax = b form is: b= 20-10]「 1100 10 5」L:JL100

In the MATLAB code, Give the values of A and b. Find the inverse of A and multiply by b. Finally print the desired result of current.

Screenshot of the code:

%Substitute the value of A as shown in equation (9). A -[20 -10;10 5]; %substitute the value of b as shown in equation (9). b

Sample Output:

sh-4.3$ octave -qf --no-window-system demo.m octave: X11 DISPLAY environment variable not set octave: disabling GUI features

Code to copy:

%Substitute the value of A as shown in equation (9).
A = [20 -10;10 5];

%Substitute the value of b as shown in equation (9).
b = [100;100];

% solving using inverse
I = inv(A)*b;

%Print the result i1
fprintf('i1 = %0.2fA \n',I(1));

%Print the result i2
fprintf('i2 = %0.2fA \n',I(2));

%Print the result i3 = i1 - i2 as shown in the
%equation (6)
fprintf('i3 = %0.2fA \n',I(1)-I(2));

%Print the result i4 = i1 as shown in the
%equation (5)
fprintf('i4 = %0.2fA\n',I(1));

Add a comment
Know the answer?
Add Answer to:
Matlab question: Resistive networks are well-represented by linear equations. Consider the DC circuit shown below: Figure...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • We name currents I_1, I_2, and I_3 as shown. From Kirchhoff's current rule, I_3 = I_1...

    We name currents I_1, I_2, and I_3 as shown. From Kirchhoff's current rule, I_3 = I_1 + I_2. Applying Kirchhoff's voltage rule to the loop containing I_2 and I_3. 12.0 V - (4.00)I_3 - (6.00)I_2 - 4.00 V = 0 8.00 = (4.00)I_3 + (6.00)I_2 Applying Kirchhoff's voltage rule to the loop containing I_1 and I_2. -(6.00)I_2 - 4.00 V + (8.00)I_1 = 0 (8.00)_I_1 = 4.00 + (6.00)I_2. Solving the above linear system, we proceed to the pair of...

  • Hi would you mind answering the question? I appreciate your help. (Matlab) - using matlab program...

    Hi would you mind answering the question? I appreciate your help. (Matlab) - using matlab program Write a MATLAB program to solve for the currents i_1, i_2, and i_3 (amps) in the circuit shown below in which the resistances are R_1 = 20, R_2 = 13, R_3 = 6, R_4 = 32 and R_5 = 110 ohms and the input voltage V_i is 120 volts Derive the equations using the Kirchoff Voltage Law (sum of voltages around a loop must...

  • Problem 2 The analysis of electrical networks composed of resistance and voltage supplies is governed by...

    Problem 2 The analysis of electrical networks composed of resistance and voltage supplies is governed by three basic principles 1. Ohm's Law. The drop in voltage across a resistor R in the direction of an assumed current is proportional to the current. In other words, V-IR 2. Kirchoff's Law. The sum of all currents entering and exiting a node must equal zero. 3. Kirchoffs Voltage Law. The sum of voltage drops around any closed loop must sum to zero. Consider...

  • Problemuǐ(30 points) Consider the circuit in Figure 1 1Ω 4A Figure I. DC resistive circuit Submit...

    Problemuǐ(30 points) Consider the circuit in Figure 1 1Ω 4A Figure I. DC resistive circuit Submit these Numerical Values in the Answer Sheet 5 points:IA 5 points: IA 5 points:VV 5 points: V.V 5 points : Power of the 2 Ω resistor Li 5 points: Power of the current source [W 1.a : Use KCL, KVL, and Ohm's Law to calculate 1 [AJ. I2 IA]. V1 IV] and V2 [V] 工 20-120 A 112 2. L.b: Verify your results by...

  • Apply the following questions to both the circuit shown in Figure (a) (resistors in series) and...

    Apply the following questions to both the circuit shown in Figure (a) (resistors in series) and the circuit shown in Figure (b) (resistors in parallel). (a) Use Ohm's law with Kirchhoff's current and voltage laws to derive equations for currents i1, i2 and i (through Resistor R1, resistor R2, and the voltage source , respectively) in terms of R1, R2, and v. (b) R1 and R2 can be interchanged with an equivalent resistor rith resistance R without changing the values...

  • MATLAB MATLAB MATLAB Consider the diagram below V R$ Here, each V represents a change in...

    MATLAB MATLAB MATLAB Consider the diagram below V R$ Here, each V represents a change in voltage (in volts) at a battery, each R represents a resistance in ohms) at a resistor and each I represents a current (in amps) through a wire. These quantities obey two simple laws: 1. Ohm's law: The voltage drop across a resistor is V = IR. 2. Kirchhoff's second law: The sum of all the voltage changes in a closed loop is zero. Using...

  • ri R$ 7:) Here, each V represents a change in voltage (in volts) at a battery,...

    ri R$ 7:) Here, each V represents a change in voltage (in volts) at a battery, each R represents a resistance (in ohms) at a resistor and each I represents a current (in amps) through a wire. These quantities obey two simple laws: 1. Ohm's law: The voltage drop across a resistor is V = IR. 2. Kirchhoff's second law: The sum of all the voltage changes in a closed loop is zero. Using these two laws, we can construct...

  • Write a program in MATLAB to analyze the circuit shown below. The circuit contains of n...

    Write a program in MATLAB to analyze the circuit shown below. The circuit contains of n capacitors, n-1 coils, two resistors (R1 and R2) and AC voltage source in the form of V-Vmcos(wt ). R1 C 1 The following requirements should be fulfilled 1. The minimum number of capacitors in 3 2. If the number of capacitors is n, the number of coils must be n-1. The user will be prompted to enter the correct number of coils if it...

  • Consider the circuit shown in the figure, where 1 = 21.7 V, 2 = 14.3 V,...

    Consider the circuit shown in the figure, where 1 = 21.7 V, 2 = 14.3 V, and R = 12.0 Ω. I'm not sure I understand Kirchhoff's Law and how to apply it to a problem like this. Consider the circuit shown in the figure, where & - 21.7 V, E- 14.3 V, and R 12.00. (Due to the nature of this problem, do not use rounded intermediate values in your calculations-including answers submitted in WebAssign.) 28.0 12.0 (a What...

  • 2. [10 pts] Consider the following circuit: 112 b 212 с 392 še 492 592 ИИ...

    2. [10 pts] Consider the following circuit: 112 b 212 с 392 še 492 592 ИИ 692 w 72 d e 892 922 m f a. [15 pts] Describe this circuit in LTSpice. Place either a DC voltage source or a current source between the terminals a and f. Use Ohm's law to find the equivalent resistance between the terminals. b. [10 pts] Using LTSpice, find the equivalent resistance between terminals a and e. Turn in netlist! Note: 0 Current...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT