Hello everybody,
I can't see why giving a cell array of three separate anonymous as input to fsolve() doesn't work:
a = 6;f = @(x)[sin(x);x;x*x];g = @(x) sin(x);h = @(x) x;y1 = fsolve(f,a)y2 = fsolve({g,f},a)y3 = fsolve({f,g,h},a)
y1 and y2 will be calculated, y3 results in an error:
??? Error using ==> lsqfcnchk at 117FUN must be a function or an inline object;
What do I miss over here? or, FUN may be a cell array that contains these type of objects.
Best Answer