MATLAB: Fsolve input

fsolve

The fsolve( ) takes function with parameters of the form x(1),x(2).. I have quite long equations involving unknowns x and y. How can I give my equations as input?

Best Answer

Instead of using an anonymous function, use a real function that starts out with
y = x(2);
x = x(1); %make sure this is last
and then use your existing equations.