% Test for proposed changes of input parser
% Please run this function once with original InputParser class and once with
% modified class to see differences in console output

p = inputParser();

p.addParameter('Para1',{},@(x) ischar(x));
p.addParameter('Para2',[],@isnumeric);

% This should work without error messages
p.parse('Para1','this is a valid argument for Para1','Para2',[1,2,3]);

% Each of the following lines will create an error message
% Please run them manually or uncomment one in script for test.
p.parse('Para1',1);
p.parse('Para2','abc');

