Prev: regarding Sensorless Control of Permanent Magnet Synchronous Motor Based on Extended Kalman Filterl
Next: pause until pressing enter
From: deepak on 22 May 2010 07:43 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 22 May 2010 08:13 "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 22 May 2010 08:19
"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. |