parseargs - A very flexible inputs parser

버전 1.1.1 (4.72 KB) 작성자: wfH
Very flexible inputs parser. Parsing name-value pairs with default property easily.
다운로드 수: 73
업데이트 날짜: 2021/9/30

라이선스 보기

Useful when a function requires 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).
My parseargs can handle flexible input arguments (e.g., name-value pairs, a struct followed by name-value pairs, two struct, ...).
Besides, it allows user to control the parsing behavior, such as
  1. ['-checkcase'] whether parameter names are case-sensitive or not,
  2. ['-partial'] whether parameter names can be partially matched or not,
  3. ['-fix'] whether unmatched parameters can be kept or not,
  4. ['-checkclass'] whether data type can be changed or not,
  5. ['-checksize'] whether data size can be changed or not,
  6. ['-verbose'] whether any warning is shown or not.

인용 양식

wfH (2024). parseargs - A very flexible inputs parser (https://www.mathworks.com/matlabcentral/fileexchange/73063-parseargs-a-very-flexible-inputs-parser), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.1

1. add wrapper of built-in `inputParser`
2. concise refactor
3. case-sensitive fieldnames in defalut
4. parameter names can be partially matched
5. update examples & doc

1.1.0

1. add wrapper of built-in `inputParser`
2. refactor (concise code)
3. case-sensitive fieldnames in defalut

1.0.2

bug fix

1.0.1

typo

1.0.0