Inputs Parser made easy

版本 1.1.0.0 (3.9 KB) 作者: Nikolay S.
Load user inputs into calling environment variables/parameters easily.
437.0 次下载
更新时间 2014/1/6

查看许可证

The goal of this function is allow easy and intuitive parsing of user inputs. The function supports three common way to pass variables to functions:
(1) "Name value" pairs- the "variable name" string is followed by the "variable value". The inputs orders is arbitrary, and the user can specify the relevant inputs.
(2) Structure input- the structure field names will specify the variable name, and field content is the variable value.
(3) Regular case, where variables name is defined by their position in function call.
Both methods "name-value" pairs and structure can be combined. User are advised to load default values, before calling this function, to guarantee all variable are initialized.
User inputs will be interpreted by the default Matlab way, only if none of the inputs was interpreted by the other two methods.
Note: Matlab "inputParser" does basically the same, but I find my function easier to use.

引用格式

Nikolay S. (2024). Inputs Parser made easy (https://www.mathworks.com/matlabcentral/fileexchange/44882-inputs-parser-made-easy), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 String Parsing 的更多信息
致谢

启发作品: embedVideo2Video.zip

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Some bug fixes and minor improvements

1.0.0.0