MATLAB: FSOLVE requires all values returned by functions to be of data type double.

fsolve errorMATLAB and Simulink Student Suitenonlinear equationssystem

I don't know how to solve this problem

Best Answer

The solution is straightforward. Be sure your ‘roottwod’ function returns double-precision values. Note that symbolic values are not double-precision values.