From: deepak on
is there any routine which can solve system of non linear equations with more than two variables.

in fsolve it's giving error like numel(z)=2; when i'm trying to solve for z where size(z)>2 ;

also fsolve is taking only one value as input is it possible to provide more than one input to it.

thnx
From: John D'Errico on
"deepak " <dkjknobel(a)rediff.com> wrote in message <ht8g08$an7$1(a)fred.mathworks.com>...
> is there any routine which can solve system of non linear equations with more than two variables.
>
> in fsolve it's giving error like numel(z)=2; when i'm trying to solve for z where size(z)>2 ;
>
> also fsolve is taking only one value as input is it possible to provide more than one input to it.
>

So read the help for fsolve. Yes, it can solve problems
with many unknowns.

My guess is that your function has multiple input
ARGUMENTS.

Fsolve needs all of the parameters it will vary as ONE
argument, a vector or array. This is explained in the
help of course.

John
From: Mark Shore on
"deepak " <dkjknobel(a)rediff.com> wrote in message <ht8g08$an7$1(a)fred.mathworks.com>...
> is there any routine which can solve system of non linear equations with more than two variables.
>
> in fsolve it's giving error like numel(z)=2; when i'm trying to solve for z where size(z)>2 ;
>
> also fsolve is taking only one value as input is it possible to provide more than one input to it.
>
> thnx

fsolve accepts a vector input to solve a system of nonlinear equations. You will have to be more specific with your coding problem.