setarg
版本 1.0.0.0 (1.1 KB) 作者:
Ivar Eskerud Smith
Set value for value/argument pair in varargin/cellstring.
See also getarg, hasarg
Set value for value/argument pair in varargin/cellstring.
If the argument does not exist it will be appended, if it exists it will be given the new specified value.
Ex:
args={'option1',true,'option2',false};
args = setarg(args,'option1',false);
args = setarg(args,'option3',false);
%args is now:
%args = { 'option1', false, 'option2', %false, 'option3', false }
引用格式
Ivar Eskerud Smith (2025). setarg (https://www.mathworks.com/matlabcentral/fileexchange/35417-setarg), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2011b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Argument Definitions 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |