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')

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 21 Mar 2016
Modifié(e) : Azzi Abdelmalek le 21 Mar 2016
t = 0:0.01:10;
vs = 3.*exp(-t /3).*sin(pi*t);
vl=vs;
vl(vs<=0)=0;
plot(t,vl)

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by