Plot window is coming up blank. Why?

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

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 21 de Mzo. de 2016
Editada: Azzi Abdelmalek el 21 de Mzo. de 2016
t = 0:0.01:10;
vs = 3.*exp(-t /3).*sin(pi*t);
vl=vs;
vl(vs<=0)=0;
plot(t,vl)

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 21 de Mzo. de 2016

Editada:

el 21 de Mzo. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by