Solving nonlinear system of equations without defining a function

回答(1 个)

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

类别

在 帮助中心 和 File Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by