fplot() for three functions

1 回表示 (過去 30 日間)
Shuqing Qi
Shuqing Qi 2021 年 2 月 6 日
コメント済み: Shuqing Qi 2021 年 2 月 7 日
I wonder why my fplot()s output errors instead of the graph below?

採用された回答

Alan Stevens
Alan Stevens 2021 年 2 月 6 日
Try using limits, e.g.
fplot(@(t) 16/3*exp(-2*t)-4/3*exp(-8*t), [0 20]);
Also use
t.*exp(...etc) not t*exp(...etc)
  3 件のコメント
Alan Stevens
Alan Stevens 2021 年 2 月 6 日
You need to use
exp(-4*t).*cos(3*t)
and
exp(-4*t).*sin(3*t)
Shuqing Qi
Shuqing Qi 2021 年 2 月 7 日
That works! Thanks a lot!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by