FUNCTION REFERENCE
addParameter
Add a name-value parameter to an inputParser.
Add a name-value parameter to an inputParser.
Syntax
addParameter(p, name, default)Syntax
addParameter(p, name, default, validator, 'PartialMatchPriority', n)Names match case-insensitively unless CaseSensitive is set, and by unique prefix while PartialMatching is set. Among several prefix matches the lowest PartialMatchPriority wins, with a warning.
Example
p = inputParser; addParameter(p, 'Tol', 1e-6); parse(p, 'Tol', 0.5); p.Results.Tol % 0.5000Differences from MATLAB: none known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.