ArgUtils

版本 1.5.0.0 (8.9 KB) 作者: Nezar
Argument parsing utilities
194.0 次下载
更新时间 2015/8/17

Useful for assigning defaults to functions that use varargin or structs of input parameters (alternative to inputParser).

See examples (and latest updates) on the github repository:
https://github.com/nvictus/ArgUtils

- Use ArgUtils.assignVars() to assign variables sequentially
- Use ArgUtils.assignArgs() to assign named variables: it works on either struct input or cell-array input containing a sequence of values followed by keyword arguments (name-value pairs) in any order.

Keywords are matched using MATLAB's string validator, so matching is case-insensitive and abbreviated keywords are acceptable as long as they can be matched unambiguously. There are also options to specify:
- required input parameters
- prefixes on keywords to prevent name collisions with string values

引用格式

Nezar (2026). ArgUtils (https://github.com/nvictus/ArgUtils), GitHub. 检索时间: .

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

启发作品: parseParameters

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.5.0.0

Connected to github

1.4.0.0

name on license

1.2.0.0

version 1.1 - fixed minor bug with prefixes, moved nonpublic functions to private folder

1.1.0.0

version 1.0 - stable

1.0.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库