% tfcncaller Driver script for fcncaller [PHYS210-demo]
%
% The syntax for passing a function handle to a function is 
% 
%   @<function name>
%
% in this case, @cos

% Make a plot of cos(x) on -pi .. pi.
fcncaller(@cos, linspace(-pi, pi, 1001));

% Make a plot of myfcn(x) on -1 .. 1.
% 
% Use 
%
% >> type myfcn
%
% to see the definition of myfcn
fcncaller(@myfcn, linspace(-1.0, 1.0, 1001));
