Function Handle

Noun · Development

Definitions

  1. In MATLAB, a reference to a function that can be stored in variables, passed to other functions, and invoked indirectly. Created with the @ operator, function handles enable callbacks and higher-order programming in MATLAB.

    In plain English: A way to treat a function as a value in MATLAB — you can store it, pass it around, and call it later, like a phone number for a function.

    Example: "Pass @sin as a function handle to the optimizer so it can evaluate the sine function at each iteration."

Related Terms