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!

