t = 0:0.01:10
for vs = 3.*exp(-t /3).*sin(pi*t)
if (vs <= 0)
vl = 0;
else
vl = vs;
end
end
plot(t,vl)
title('Load voltage vs Time')

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 3월 21일
편집: Azzi Abdelmalek 2016년 3월 21일

0 개 추천

t = 0:0.01:10;
vs = 3.*exp(-t /3).*sin(pi*t);
vl=vs;
vl(vs<=0)=0;
plot(t,vl)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2016년 3월 21일

편집:

2016년 3월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by