warnid.m

来自「实现地震勘探中」· M 代码 · 共 28 行

M
28
字号
function wid=warnid% Create an identifier for warnings based on the name of the calling function%% Written by: E. R.: July 6, 2006% Last updated:%%       wid=warnid% OUTPUT% wid   identifier for "warning" (first input argument)%% EXAMPLE%       warning(warnid,'This is a warning')%       Find the name of the calling program and append it to "SeisLab:"ll=dbstack';nll=length(ll);if nll > 0   wid=cell(nll,1);   wid{1}=' ';   for ii=2:nll      wid{ii}=['SeisLab:',ll(ii).name,', line ',num2str(ll(2).line)];   end   wid=wid{end};else   wid='';end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?