I wonder why my fplot()s output errors instead of the graph below?

 採用された回答

Alan Stevens
Alan Stevens 2021 年 2 月 6 日

0 投票

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 件のコメント

Shuqing Qi
Shuqing Qi 2021 年 2 月 6 日
What should we change for the third fplot? There isn't t.*exp but error still exist.
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 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by