MATLAB: Can anybody explain such a function handle in Matlab

anonymous function

@(z)func_example(x,y,z)
Can anybody kindly explain the above function handle in Matlab? I am only familiar with
@func_example
which does not have the variables in the brackets. Thanks in advance!

Best Answer

This explains anonymous functions:
and this explains nested functions:
Together these two documents explain what you have given in your question:
@(z) % creates an anonymous function,
func_example % which calls this function
(x,y,z) % with these arguments
Note that x and y must be defined in the workspace outside this function, while the z is passed as a variable to the anonymous function.