getoptions.m.svn-base
来自「general toolbox......」· SVN-BASE 代码 · 共 26 行
SVN-BASE
26 行
function v = getoptions(options, name, v, mendatory)% getoptions - retrieve options parameter%% v = getoptions(options, 'entry', v0, mendatory);% is equivalent to the code:% if isfield(options, 'entry')% v = options.entry;% else% v = v0;% end%% Copyright (c) 2007 Gabriel Peyreif nargin<3 error('Not enough arguments.');endif nargin<4 mendatory = 0;endif isfield(options, name) v = eval(['options.' name ';']);elseif mendatory error(['You have to provide options.' name '.']);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?