function cirarea - anonymous functionsthe


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

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: function cirarea - anonymous functionsthe
Reference No:- TGS0175141

Expected delivery within 24 Hours