Function cirarea - Anonymous functions:
The function handle name is cirarea. The one argument is passed to the input argument radius. The body of the function is an expression pi * radius .^2. The .^ operator is used so that the vector of radii can be passed to the function.
The function is then called by using the handle and passing the arguments to it. The function call by using function handle appears just like a function call using the function name.
>> cirarea(4)
ans =
50.2655
>> cirarea(1:4)
ans =
3.1416 12.5664 28.2743 50.2655