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

Réponses (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 commentaires

Dyuman Joshi
Dyuman Joshi le 20 Déc 2022
Modifié(e) : Dyuman Joshi le 20 Déc 2022
Thanks for pointing out. I looked into the documentation of fplot function which is a part of symbolic math toolbox.
Voss
Voss le 20 Déc 2022
Ahh. Makes sense.

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Question posée :

le 20 Déc 2022

Commenté :

le 20 Déc 2022

Community Treasure Hunt

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

Start Hunting!

Translated by