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.
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개)

카테고리

태그

질문:

2021년 2월 6일

댓글:

2021년 2월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by