Question

Use the circuit below to complete the given MATLAB script to plot the three voltages Vr, Vc and VL. Run MATLAB then pick an answer from the choices below that matches the MATLAB plot.

4 Ω j1Ο Ω Zr + Vr - ZL + VL - 1030° ν (+ VS Vc Zc -j12 Ω

MATLAB uncomplete script

clc; close all; clear all;

Mvs= 10;

Avs=30*pi/180;

[Xvs Yvs]=pol2cart(Avs, Mvs);

Vs=Xvs+j*Yvs;

% Impedances values

Zr=4; ZL=10j; Zc=-12j;

% total equivalent impedance of series R, L and C

Zeq = ; %complete

% Calculate current

It = ; %complete

Vr= ; %complete

Vc= ; %complete

VL= ; %complete

x=[real(Vr) real(Vc) real(VL)];

y=[imag(Vr) imag(Vc) imag(VL)];

V=x+j*y;

clr = lines(numel(x,y)); %# colors you want to

h=compass(V);

set(h, {'Color'},num2cell(clr,2), 'LineWidth',2)

u=abs(V);

v=phase(V)*180/pi;

figure(1)

set(findobj(gcf,'type','text','-and','fontsize',10),'string','')

legend({['V_r=',num2str(u(1)),' A,',' theta_r=',num2str(v(1)),'^o'],...

['V_c=',num2str(u(2)),' A,',' theta_c=',num2str(v(2)),'^o'],...

['V_L=',num2str(u(3)),' A,',' theta_L=',num2str(v(3)),'^o']},...

'location','southoutside')

90 30 90 30 90 30 90 30 120 60 120 60 120 60 120 60 20 20 20 20 150 30 150 30 150 30 150 30 10 10 10 10 V 180 0 180 0 180 0 1Choose the correct anwser

1.) PLOT C

2.) PLOT A

3.) PLOT D

4.) PLOT B

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

SOLUTION:-

ANS:- 2) PLOT A

COMPLETE CODE AS:-

OUTPUT:-

Add a comment
Know the answer?
Add Answer to:
Use the circuit below to complete the given MATLAB script to plot the three voltages Vr,...
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