Here is an example for defining and using anonymous function in Matlab
data = 1:10; %# A vector of data
f = @(x) x.^2; %# An anonymous function
squaredData = f(data); %# Invoke the anonymous function
The anonymous function does have a name f. So why is it called anonymous?
The anonymous function is the expression
@(x) x.^2. This expression is a function which is unnamed and hence it’s anonymous. The valuefeventually contains the expression though. But the feature itself is usable without a name