How do you create a plot of a function using fplot?

Respuestas (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 comentarios

Dyuman Joshi
Dyuman Joshi el 20 de Dic. de 2022
Editada: Dyuman Joshi el 20 de Dic. de 2022
Thanks for pointing out. I looked into the documentation of fplot function which is a part of symbolic math toolbox.
Voss
Voss el 20 de Dic. de 2022
Ahh. Makes sense.

Iniciar sesión para comentar.

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Dic. de 2022

Comentada:

el 20 de Dic. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by