Question

5. Find vi, V2, V3, and v4 using Matlab. Verify your results with LTSpice. i0 V lk 2 3 kn 2kn 12 幸5kD 2 mA
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Matlab Code:

clc;
clear all;
R=[     1         0        0       -1 ;
    0.00125   -0.00025 -0.0015   0.0007;
   -0.00025 0.0010833 -0.0003333 0 ;
   -0.001    -0.0003333   0.0018333 -0.0005]
   
I=[ 10;0;0;0.002]
V=inv(R)*I

Matlab Output:


R =

    1.0000         0         0   -1.0000
    0.0013   -0.0003   -0.0015    0.0007
   -0.0003    0.0011   -0.0003         0
   -0.0010   -0.0003    0.0018   -0.0005


I =

   10.0000
         0
         0
    0.0020


V =

    9.3659
    4.2536
    6.8001
   -0.6341

>>

LTspice:

V1 R6 9.3658537V 4000 10 R1 1000 R7 R5 8000002V 4.2536588V 634.14633mV 3000 2000 I1 R3 R2 2000 5000 0.002 0V ov .op

Add a comment
Know the answer?
Add Answer to:
5. Find vi, V2, V3, and v4 using Matlab. Verify your results with LTSpice. i0 V...
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