Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I pass additional parameters into a “function function” like ODE45, QUAD, FSOLVE, FMINCON, GA, etc?

0
Posted

How can I pass additional parameters into a “function function” like ODE45, QUAD, FSOLVE, FMINCON, GA, etc?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123