Solving nonlinear system of equations without defining a function
Show older comments
How can I solve a nonlinear system of equations by fsolve without defining a "function.m"?
Answers (1)
Torsten
on 12 Nov 2014
0 votes
For simple problems, you could use a function handle:
F=@(x)(x.^2-1);
x0=0;
[x,fval] = fsolve(F,x0);
Best wishes
Torsten.
Categories
Find more on Systems of Nonlinear Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!