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?
댓글 수: 0
채택된 답변
Walter Roberson
2012년 4월 1일
VL = vs;
VL(vs < 0) = 0;
댓글 수: 3
Walter Roberson
2012년 4월 1일
That's because you are using only integer t . sin(pi times an integer) is always 0.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Power Converters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!