How can I pass additional parameters into a “function function” like ODE45, QUAD, FSOLVE, FMINCON, GA, etc?
The term “function functions” refers to functions in MATLAB and the toolboxes that accept a function (usually a function handle) and evaluate that function repeatedly during the course of their work. Some examples of “function functions” are: • the ordinary differential equation solvers like ODE45, ODE23, etc. • the integration functions like QUAD and QUADL • the optimization functions in the funfun directory in MATLAB, like FMINSEARCH and LSQNONLIN • the optimization functions in the Optimization Toolbox, like FMINCON, FSOLVE, and LSQCURVEFIT • the optimization functions in the Genetic Algorithm and Direct Search Toolbox, like GA and PATTERNSEARCH There are several documents on The MathWorks support website that shows examples of how to pass additional parameters to the functions used by the “function functions”. • ODE solvers like ODE45 and integration functions like QUAD or QUADL (http://www.mathworks.com/support/solutions/data/1-1AIJF.html?solution=1-1AIJF) • Optimization functions
Related Questions
- While registering a report and a pl/sql block we pass some parameters, for any pl/sql block we pass 2 additional parameters. Can u list them?
- How can I pass additional parameters into a "function function" like ODE45, QUAD, FSOLVE, FMINCON, GA, etc?
- Can you pass additional parameters to the XSL stylesheet?