help-octave
[Top][All Lists]
Advanced

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

Re: fmins not found


From: Martin Helm
Subject: Re: fmins not found
Date: Wed, 4 May 2011 01:47:42 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Am Mittwoch, 4. Mai 2011, 01:34:50 schrieb Alice Marcot:
> Sorry. I was using:
> 
> octave -qfH --no-init-file --no-site-file [parameters]
> 
> Because I will use the script in a web environment. Probably because of
> that I was getting that error. Anyway, now the optim is loaded and works.
> But this time I am getting the error:
> 
> error: `x' undefined near line 1 column 6
Not sure about your inline function since I never use it, with an anonymous 
function it works as expected

f = @(x) (x(1)-5).^2+(x(2)-8).^4;
d=fmins(f,[0;0])
d =

   4.9998
   7.9918


reply via email to

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