Solving Nonlinear Equations in MATLAB: Troubleshooting with fsolve Command

  • Context: MATLAB 
  • Thread starter Thread starter fluidman
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 5K views
fluidman
Messages
3
Reaction score
0
Hi to everyone.I were to solve a nonlinear equations system consisting of two unknown parameters and two equations.I have written a Matlab m-file to define the functions in order to solve them by embeded fsolve Matlab command.But I end up with an error occurring on the command window, when i attempt to solve the equations by typing
>> x0=[0.0157;0.01585];
>> [x, functionvalue, control, feature]=fsolve('saumrd',x0);
where saumrd is the name of the m-file in which I defined the functions.The error occurred after typing the above script on command window is as follows:

Maximum number of function evaluations reached:
increase options.MaxFunEvals.

Is ther anyone who will comment on the error and guide me to overcome this proplem?Thanking you so much.
 
Physics news on Phys.org