How do you create a plot of a function using fplot?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
f(t)=@(t) 5*t.^2;
fplot(f(t))
why is this wrong?
0 commentaires
Réponses (2)
Les Beckham
le 20 Déc 2022
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 commentaires
Voss
le 20 Déc 2022
f = @(t)5*t.^2;
fplot(f)
2 commentaires
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.
Voir également
Catégories
En savoir plus sur Calculus dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!