5 elseif isnumeric(nStepsUp)
8 'nStepsUp cannot be negative');
11 error([upper(mfileaname),
':wrongInput'],...
12 'nStepsUp is expected to be numeric');
15 if fix(nStepsUp)~=nStepsUp
17 'nStepsUp is expected to be an integer');
27 [methodName,className]=
mxberry.
core.getcallernameext(nStepsUp+1);
28 if ~strcmpi(mode,
'default')||isempty(className)
29 %
delete info on subfunctions
30 curInd=find(methodName==
'/'|methodName==
'\',1,
'first');
32 methodName=methodName(1:curInd-1);
38 callerName=methodName;
44 callerName=methodName;
46 callerName=[className
'.' methodName];
50 'Unknown mode: %s',mode);
function isstring(in inpArray)
function getcallername(in nStepsUp, in mode)
GETCALLERNAME returns a name of caller determined by a number of steps up in the call stacks...