% exfun.m 
% 
% This is an example function.
% With an integer parameter, return a 0 if it is even,
% or 1 if it is odd.
% -MCW
%
% Usage:
%   exfun(5)

function rval = exfun(in)

rval = 1; 
%rval = mod(in, 2);

% Another way to see if it is even
if (in/2 == floor(in/2))
    rval = 0;
end


