fplot() for three functions

2 Ansichten (letzte 30 Tage)
Shuqing Qi
Shuqing Qi am 6 Feb. 2021
Kommentiert: Shuqing Qi am 7 Feb. 2021
I wonder why my fplot()s output errors instead of the graph below?

Akzeptierte Antwort

Alan Stevens
Alan Stevens am 6 Feb. 2021
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 Kommentare
Alan Stevens
Alan Stevens am 6 Feb. 2021
You need to use
exp(-4*t).*cos(3*t)
and
exp(-4*t).*sin(3*t)
Shuqing Qi
Shuqing Qi am 7 Feb. 2021
That works! Thanks a lot!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by