%% Extra Parameter Value Inputs
% Store parameter name and value inputs that are not in the input scheme instead of throwing an error.

default = 0;
value = 1;

p = inputParser;
p.KeepUnmatched = true;
addOptional(p,'expectedInputName',default)
parse(p,'extraInput',value);

%
% View the unmatched parameter name and value:

p.Unmatched

% Copyright 2015 The MathWorks, Inc.