Question
USE A MATHLAB PROGRAM AND RUN IT FOR RHE FOLLOWING EJERCICE


Matab n eleclric circuits there is a very important formula wthere the POWER thl is dissipoled in a compenant i catulted The
0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB script

clc
clear
k=menu('Power formula for DC','P=I*V','R*I^2','P=V^2/R');
if k==1
I=input('Input current value');
V=input('Input voltage value');
P=I*V;
fprintf('Power is %g\n',P)
elseif k==2
I=input('Input current value');
R=input('Input resistance value');
P=I^2*R;
fprintf('Power is %g\n',P)
else
R=input('Input resistance value');
V=input('Input voltage value');
P=V^2/R;
fprintf('Power is %g\n',P)
end

Result after choosing P=V^2/R

Input resistance value2
Input voltage value7
Power is 24.5

Add a comment
Know the answer?
Add Answer to:
USE A MATHLAB PROGRAM AND RUN IT FOR RHE FOLLOWING EJERCICE Matab n eleclric circuits there is a very important formula wthere the POWER thl is dissipoled in a compenant i catulted The pewer far...
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