getoptions.m

来自「A toolbox for the non-local means algori」· M 代码 · 共 23 行

M
23
字号
function v = getoptions(options, name, v, mendatory)% getoptions - retrieve options parameter%%   v = getoptions(options, 'entry', v0);% is equivalent to the code:%   if isfield(options, 'entry')%       v = options.entry;%   else%       v = v0;%   end%%   Copyright (c) 2007 Gabriel Peyreif 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 + -
显示快捷键?