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

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

[Octave-bug-tracker] [bug #46807] Additional arguments to fmin*


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #46807] Additional arguments to fmin*
Date: Mon, 04 Jan 2016 10:22:31 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?46807>

                 Summary: Additional arguments to fmin*
                 Project: GNU Octave
            Submitted by: octavebugs
            Submitted on: Mon 04 Jan 2016 10:22:30 AM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Matlab supports additional arguments in fminsearch, fmnbnd, fminunc, etc. that
get passed to the function.

There is documentation here but not on the current Matlab website.

http://www-rohan.sdsu.edu/doc/matlab/techdoc/ref/fminsearch.html

Example:

# Octave
fun=@(x,C)sin(C*x);
fminsearch(fun,0,[],2)
error: Invalid call to fminsearch.  Correct usage is:

 -- Function File: X = fminsearch (FUN, X0)
 -- Function File: X = fminsearch (FUN, X0, OPTIONS)
 -- Function File: [X, FVAL] = fminsearch (...)


#Matlab
fun=@(x,C)sin(C*x);
fminsearch(fun,0,[],2)
ans =
   -0.7854





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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