function myFunc(n)
%function myFunc(n)
% Purpose: demo function for dual command-syntax and function-syntax
% Applications: MATLAB utilities: print, load, save, ...
%               MATLAB standalone executable (cannot have return values)
% Example:
% >> n=5; myFunc(n) % passed by reference; n=5; m=n+1=6
% >> n=5; myFunc n  % passed by value; n=n; m=n+1=111 (ASCII dec. n=110)
n  % prints value of n
disp(['Is n a character ?' num2str(ischar(n))])  % is it a character ?
m = n + 1   % if n is a string, the algebraic sum of m is not correct
disp(['Is m a character ?' num2str(ischar(m))])
end
