Help writing and solving a problem

1 次查看(过去 30 天)
I'm having a hard time with this problem regarding ideal diode and voltage. I am given the voltage across load
VL=
vs if vs > 0 | 0 if vs <=0
Supply voltage is given by:
vs(t) = 3e^(-t/3)sin(pi*t)
I have to plot VL versus t for 0 <= t <= 10
I've tried using a for loop but I can't get it figured out.
Can someone help?

采纳的回答

Walter Roberson
Walter Roberson 2012-4-1
VL = vs;
VL(vs < 0) = 0;
  3 个评论
Walter Roberson
Walter Roberson 2012-4-1
That's because you are using only integer t . sin(pi times an integer) is always 0.
Steven
Steven 2012-4-1
So wouldnt the plot just be a straight line at 0?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Power Converters 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by