Solving nonlinear system of equations without defining a function
显示 更早的评论
How can I solve a nonlinear system of equations by fsolve without defining a "function.m"?
回答(1 个)
Torsten
2014-11-12
0 个投票
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!