octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #41888] fminsearch: should pass additional arg


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #41888] fminsearch: should pass additional arguments to called function
Date: Mon, 17 Mar 2014 21:07:07 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9

Follow-up Comment #1, bug #41888 (project octave):

That doesn't seem to be the documented behavior of Matlab's fminsearch
function.

I think the "modern" way of doing this is to use an anonymous function,
something like this:


result = fminsearch (@(x) myfun (x, param), start, options);



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41888>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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