Function Handles - MATLAB & Simulink
www.mathworks.com › help › matlabFunction handles can represent either named or anonymous functions. To create a function handle, use the @ operator. For example, create a handle to an anonymous function that evaluates the expression x2 – y2: f = @ (x,y) (x.^2 - y.^2); For more information, see Create Function Handle.
Call Local Functions Using Function Handles - MATLAB & Simulink
www.mathworks.com › help › matlabThis example shows how to create handles to local functions. If a function returns handles to local functions, you can call the local functions outside of the main function. This approach allows you to have multiple, callable functions in a single file. Create the following function in a file, ellipseVals.m, in your working folder. The function returns a struct with handles to the local functions.