Plotting a function inside a m-file?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I ran A3.m but it doesn't seem to create a correct plot.
0 Kommentare
Akzeptierte Antwort
Razvan
am 10 Okt. 2012
Function f2 returns only a number... Probably you want a vector, with one element for each element of x. In this case use
function F = f2(x)
F = 2*(x.^4)-3*(x.^2)+x-7;
end
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Graphics Objects 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!