Problem multiplying exponential function with negative value
Mostrar comentarios más antiguos
I want to plot x(t) = t*(e−0.15t), − 20 ≤ t ≤ 20
I've tried:
t = -20:1:20;
x(t) = t.*(exp(-0.15*t));
plot(t,x(t))
Respuesta aceptada
Más respuestas (1)
Yongjian Feng
el 11 de Feb. de 2022
Try this:
t = -20:1:20;
x_t = t.*(exp(-0.15*t));
plot(t, x_t)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

