06-Nov-2018 12:18:30 ARGS_TEST: MATLAB version Test the ARGS functions. ARGS MATLAB version Demonstrate methods of checking input arguments. NARGIN counts arguments. VARARGIN allows a variable number of input arguments. Use this routine by making a call with any number of comma-separated arguments. For this demonstration, please only use quoted strings as arguments, such as: args ( 'Bob', 'Fred', 'String' ) The number of input arguments was 3. Argument 1 is Bob Argument 2 is Fred Argument 3 is string ARGS: Normal end of execution. ARGS MATLAB version Demonstrate methods of checking input arguments. NARGIN counts arguments. VARARGIN allows a variable number of input arguments. Use this routine by making a call with any number of comma-separated arguments. For this demonstration, please only use quoted strings as arguments, such as: args ( 'Bob', 'Fred', 'String' ) The number of input arguments was 4. Argument 1 is Alice Argument 2 is Barbara Argument 3 is Clarisse Argument 4 is Davida ARGS: Normal end of execution. value = summer ( alpha, beta ) is a function which adds two arguments. summer() has been called with 2 arguments ALPHA (input argument): ALPHA was supplied as a functional input. No conversion was necessary. The value of ALPHA is 1 BETA (input argument): BETA was supplied as a functional input. No conversion was necessary. The value of BETA is 2 ans = 3 value = summer ( alpha, beta ) is a function which adds two arguments. summer() has been called with 2 arguments ALPHA (input argument): ALPHA was supplied as commandline input. It had to be converted from string to number. The value of ALPHA is 10 BETA (input argument): BETA was supplied as commandline input. It had to be converted from string to number. The value of BETA is 20 ans = 30 ARGS_TEST: Normal end of execution. 06-Nov-2018 12:18:30