How do you create a plot of a function using fplot?
显示 更早的评论
回答(2 个)
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
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.
Voss
2022-12-20
Ahh. Makes sense.
类别
在 帮助中心 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

