Plotting a function inside a m-file?

 Respuesta aceptada

Razvan
Razvan el 10 de Oct. de 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

Más respuestas (1)

Categorías

Más información sobre Graphics Objects en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Oct. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by