Using fsolve for large system of coupled nonlinear equation
Pardon me if this is a trivial question. 

I want to solve a nonlinear (square) coupled system of equations, perhaps up to 101 x 101 using fsolve. 

I have tried to methods of this thread to generate the input function:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/293781

for i = 2:(N-1)
        g{i} = @(x) -a*x(i) - b*x(i+1) - b*x(i-1) - c*x(i)^3;
end

g{1} = -e*x(1) - b*x(2) + f;
g{N} = -e*x(N) - b*x(N-1);

F = @(x) cellfun(@(G) G(x), g);

However I get the following error:

??? Error using ==> cellfun
Non-scalar in Uniform output, at index 1, output 1.
Set 'UniformOutput' to false.

Setting 'UniformOutput' to false gives me other error messages. 

I'm not clear as to what the problem is, any help is greatly appreciated.
Using fsolve for large system of coupled nonlinear equation
===

Pardon me if this is a trivial question. 

I want to solve a nonlinear (square) coupled system of equations, perhaps up to 101 x 101 using fsolve. 

I have tried to methods of this thread to generate the input function:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/293781

for i = 2:(N-1)
        g{i} = @(x) -a*x(i) - b*x(i+1) - b*x(i-1) - c*x(i)^3;
end

g{1} = -e*x(1) - b*x(2) + f;
g{N} = -e*x(N) - b*x(N-1);

F = @(x) cellfun(@(G) G(x), g);

However I get the following error:

??? Error using ==> cellfun
Non-scalar in Uniform output, at index 1, output 1.
Set 'UniformOutput' to false.

Setting 'UniformOutput' to false gives me other error messages. 

I'm not clear as to what the problem is, any help is greatly appreciated.