fplot() for three functions

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by