MATLAB: Objective function is returning undefined values at initial point. FSOLVE cannot continue

simulink

I call "fsolve" function by using an interpreted MATLAB Function block in simulink.However, during simulation error occurs: "Objective function is returning undefined values at initial point. FSOLVE cannot continue". How can I solve the problem? Can anyone help me?

Best Answer

To investigate what the objective function is complaining about, evaluate the initial point yourself manually and inspect the result.
Related Question