Function Handles

Variables that allow you to invoke a function indirectly

A function handle is a data type that stores an association to a function. For example, you can use a function handle to construct anonymous functions or specify call back functions. Also, you can use a function handle to pass a function to another function, or call local functions from outside the main function.

To get started, see Create Function Handle.

Functions

feval Evaluate function
func2str Construct string from function handle
str2func Construct function handle from string
localfunctions Function handles to all local functions in MATLAB file
functions Information about function handle
Was this topic helpful?