MATLAB: Fsolve How to pass several functions

fsolve

Can anyone help in the fsolve?
syms x y
% define function
f1 = @(x,y) x+y^2-5;
f2 = @(x,y) x+y-3;
f = @(x,y) [f1,f2];
x0 = [.1,.6];
z = fsolve(f,x0);

Best Answer

f=@(x,y) [x+y^2-5; x+y-3];
z = fsolve(@(p) f(p(1),p(2)),x0);
Related Question