Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help fsolve

52 views
Skip to first unread message

Lorena Ramos

unread,
Jan 7, 1998, 3:00:00 AM1/7/98
to

Someone know why do not work the function fsolve...

i get the next menssage...

>> opt=foptions;
>> opt(1)=1;
>> vars0=[1 1 30000]';
>> a=0.00023; b=4.6; c=70900; x=1/3;
>> vars=fsolve('ff', vars0, opt,[],x,a,b,c)
??? Undefined function or variable 'fsolve'.

thanks.....

Octavio Rodriguez villar
E-mail rvo4...@foreigner.class.udg.mx

Mary Ann Branch

unread,
Jan 8, 1998, 3:00:00 AM1/8/98
to

Lorena Ramos (rvo4...@foreigner.class.udg.mx) wrote:
: Someone know why do not work the function fsolve...

:
: i get the next menssage...
:
: >> opt=foptions;
: >> opt(1)=1;
: >> vars0=[1 1 30000]';
: >> a=0.00023; b=4.6; c=70900; x=1/3;
: >> vars=fsolve('ff', vars0, opt,[],x,a,b,c)
: ??? Undefined function or variable 'fsolve'.
:
:
:

It looks like you either don't have the Optimization Toolbox (which
contains fsolve), or somehow the optim toolbox directory isn't on your
path.

Did you change your path after you started up MATLAB?
What happens when you do "help optim" or "which fsolve" ?

-- Mary Ann

--
==== Mary Ann Branch ==================== bra...@mathworks.com ====
The MathWorks, Inc. in...@mathworks.com
24 Prime Park Way http://www.mathworks.com
Natick, MA 01760-1500 ftp.mathworks.com
==== Tel: 508-647-7000 ===================== Fax: 508-647-7001 ====

Helen Ashton

unread,
Jan 16, 1998, 3:00:00 AM1/16/98
to

Lorena Ramos wrote:
>
> Someone know why do not work the function fsolve...
>
> i get the next menssage...
>
> >> opt=foptions;
> >> opt(1)=1;
> >> vars0=[1 1 30000]';
> >> a=0.00023; b=4.6; c=70900; x=1/3;
> >> vars=fsolve('ff', vars0, opt,[],x,a,b,c)
> ??? Undefined function or variable 'fsolve'.

What is fsolve?

Helen

Matthias Ehrhardt

unread,
Jan 16, 1998, 3:00:00 AM1/16/98
to Lorena Ramos
As far as i know: "help fsolve" yields
FSOLVE Solves nonlinear equations by a least squares method...
is a routine from the optimization toolbox
either you dont have this toolbox
or MATLAB's search path does not include the
directory of this toolbox.
Matthias

Martin

unread,
Jan 16, 1998, 3:00:00 AM1/16/98
to

Helen Ashton wrote:
>
> Lorena Ramos wrote:
> >
> > Someone know why do not work the function fsolve...
> >
> > i get the next menssage...
> >
> > >> opt=foptions;
> > >> opt(1)=1;
> > >> vars0=[1 1 30000]';
> > >> a=0.00023; b=4.6; c=70900; x=1/3;
> > >> vars=fsolve('ff', vars0, opt,[],x,a,b,c)
> > ??? Undefined function or variable 'fsolve'.
>
> What is fsolve?
>
> Helen

'fsolve' is an equation solver that is part of the Optimisation toolbox.
It was supplied as standard issue with version 3.5 and with a little
tinkering this can be made to work in Version 5.

Martin

0 new messages