How do you create a plot of a function using fplot?
조회 수: 3 (최근 30일)
이전 댓글 표시
f(t)=@(t) 5*t.^2;
fplot(f(t))
why is this wrong?
댓글 수: 0
답변 (2개)
Les Beckham
2022년 12월 20일
Maybe you want ezplot instead of fplot. Your anonymous function definition syntax is wrong as well.
Try this:
f = @(t) 5*t.^2;
ezplot(f)
grid on
댓글 수: 0
Voss
2022년 12월 20일
f = @(t)5*t.^2;
fplot(f)
댓글 수: 2
Dyuman Joshi
2022년 12월 20일
편집: Dyuman Joshi
2022년 12월 20일
Thanks for pointing out. I looked into the documentation of fplot function which is a part of symbolic math toolbox.
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!