Problem multiplying exponential function with negative value
显示 更早的评论
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))
采纳的回答
更多回答(1 个)
Yongjian Feng
2022-2-11
Try this:
t = -20:1:20;
x_t = t.*(exp(-0.15*t));
plot(t, x_t)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

