File Exchange

image thumbnail


version 1.0.2 (3.31 KB) by wen-feng Huang
Parsing name-value pairs with default property easily.


Updated 19 Oct 2019

View License

Useful when function required multiple options.

"parseargs" Set name-value pair arguments with default property easily.
The basic usage is like other similar functions in FEX, e.g "parseargs (Malcolm Wood)", "parse_pv_pairs (John D'Errico)".

Moreover, "parseargs" allows user to define the behaviors when parsing name-value pairs.
For example,
(1) user specifies whether parameter names are case-sensitive or not,
(2) user specifies whether data type can be changed or not,
(3) user specifies whether data size can be changed or not,
(4) user specifies whether a new parameter can be added to the default or not,
(5) user specifies whether any warning is shown or not.
(6) user can use another struct to parse name-value pair arguments.

Cite As

wen-feng Huang (2021). parseargs (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!