fplot() for three functions

조회 수: 11 (최근 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 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