Question

Problem 4: The equations describing the circuit shown in Figure P38 are -1RiRi4 = 0 -Rii4+ Rziz + Rsis 0 -Rsis +Raia + v2 = 0
Solve using Matlab
Will leave a like
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Re-writing the equations:

R_{1}i_{1}+0i_{2}+0i_{3}+R_{4}i_{4}+0i_{5}=v_{1}

0i_{1}+R_{2}i_{2}+0i_{3}-R_{4}i_{4}+R_{5}i_{5}=0

0i_{1}+0i_{2}-R_{3}i_{3}+0i_{4}+R_{5}i_{5}=v_{2}

i_{1}-i_{2}+0i_{3}-i_{4}+0i_{5}=0

0i_{1}+i_{2}-i_{3}+0i_{4}-i_{5}=0

There are five equations and five unknows which can be solved using matrices in MATLAB. For different positive values of v2 we will find the magnitude of currents and select only those values of voltages for which magnitudes of all the currents are less than 0.001 A. The MATLAB code is given below:

v=0:0.1:100;V=0;
A=1000*[5 0 0 150 0;0 100 0 -150 250;0 0 -200 0 250;1 -1 0 -1 0;0 1 -1 0 -1];
for i=1:length(v)
B=[100;0;v(i);0;0];
I=B\A;
if (abs(I)<=0.001) %condition to check whether the currents are lower than 0.001 A
V=[V v(i)]; %valid values of v2 for which all the currents are lower than 1 mA
end
end

The result is 'V' which shows that for no positive value of v2, all the currents will be lower than 1 mA.

Add a comment
Know the answer?
Add Answer to:
Solve using Matlab Will leave a like Problem 4: The equations describing the circuit shown in...
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
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