How do you create a plot of a function using fplot?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
f(t)=@(t) 5*t.^2;
fplot(f(t))
why is this wrong?
0 Kommentare
Antworten (2)
Les Beckham
am 20 Dez. 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 Kommentare
Voss
am 20 Dez. 2022
f = @(t)5*t.^2;
fplot(f)
2 Kommentare
Dyuman Joshi
am 20 Dez. 2022
Bearbeitet: Dyuman Joshi
am 20 Dez. 2022
Thanks for pointing out. I looked into the documentation of fplot function which is a part of symbolic math toolbox.
Siehe auch
Kategorien
Mehr zu Assumptions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!