function demohelp()
% demohelp Demonstrates interfacing a fcn to lookfor/help
% 
% Input arguments: None
%
% Return values: None
%
% All 'demohelp' does is echo a message that it was invoked.
%
% ---------------------------------------------------------
% 1) Interface to lookfor
%
% The first comment line following the function header
% is known as the H1 line. Matlab searches this line for 
% <keyword> when
%
% >> lookfor <keyword> 
%
% is executed and, if found, displays the H1 line, with 
% some standard rearrangement/formatting.  For example,
% the output from 
% 
% >> lookfor help
%
% will include 
%
%    demohelp         - Demonstrates interface to help/lookfor
%
% 2) Interface to help: 
%
% When
% 
% >> help <function>
%
% is executed, any text in contiguous comment lines following the 
% function header will be displayed. 
%
% The comment characters per se are stripped from the 
% output.
% ---------------------------------------------------------

   disp('demohelp: You invoked me!');
   % The comment block above will be displayed when 
   % 'help demohelp' is executed, but this block will not.
end
