Solving nonlinear system of equations without defining a function

Respuestas (1)

Torsten
Torsten el 12 de Nov. de 2014
For simple problems, you could use a function handle:
F=@(x)(x.^2-1);
x0=0;
[x,fval] = fsolve(F,x0);
Best wishes
Torsten.

Categorías

Preguntada:

el 12 de Nov. de 2014

Respondida:

el 12 de Nov. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by