%% Inline Functions

%%
% We can also use the inline command to perform the circle calculations.
%
% This can be done directly at the command prompt (or in our current
% file).
%
% We type
circumference = inline('2*pi*r')

%%
% and
area = inline('pi*r.^2')

%%
% Inline functions are evaluated using the |feval| command.
%
% To get the circumference of a circle with radius 5 we use
feval(circumference,5)

%%
% To get both values we use, e.g.,
circledata = [feval(circumference,5); feval(area,5)]

%%
% Vectorized usage:
circledata = [feval(circumference,[2 4 6]); feval(area,[2 4 6])]

