help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: `fminsearch' undefined - Octave 3.2.4 Win7 64bit


From: Martin Helm
Subject: Re: error: `fminsearch' undefined - Octave 3.2.4 Win7 64bit
Date: Sat, 12 Nov 2011 17:46:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0

Am 12.11.2011 17:34, schrieb jammydav93:
> Hi everyone,
>
> I'm pretty new to Octave and am having trouble using fminsearch on my
> Windows 7 machine,
>
> i'm trying to use fminsearch to find a,b,c,d from my predetermined x and y
> values 
>
> x=[1:100]
>
> fmp.m:
> function y=fmp(x)
> y=a*cos(b*x + c) .* exp (x/d)
>
> I then enter and get the following from Octave
>
> octave-3.2.4.exe:6> fminsearch(@fmp,x)
> error: `fminsearch' undefined near line 6 column 1
>
> can anyone help me with this?
>
> Thanks
>
> J
Do you have the package optim installed and loaded?
Is it listed with
pkg list
and does it show a *
what happens when you call
pkg load optim
?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]