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: H. G.
Subject: [Octave-bug-tracker] [bug #41888] fminsearch: should pass additional arguments to called function
Date: Fri, 21 Mar 2014 19:52:47 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

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

If it's still interesting, here is the Matlab behavior: 

* Those two ways work fine:

result1 = fminsearch(@myfun, start, options, param)
result2 = fminsearch(@myfun, start,[], param)


* This way does NOT work in Matlab:

result3 = fminsearch(@myfun, start, param)

It throws an error "Input argument "a" is undefined."

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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