anonymous-function
Programming
Create an anonymous (lambda) function. The @ symbol followed by parameter list and expression creates a callable function object. Anonymous functions capture workspace variables at creation time.
Syntax
f = @(args) expression
@(x) x^2
@(x, y) x + y
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab