name_of_calling_function.m
来自「基于Matlab的地震数据处理显示和测井数据显示于处理的小程序」· M 代码 · 共 23 行
M
23 行
function functionName=name_of_calling_function(ik)
% Function determines the name of the function in the calling sequence that
% lead to this call
% INPUT
% ik index specifying the level up
% 1 function that called "name_of_calling_function",
% 2 function that called the function that called "name_of_calling_function",
% ....
% OUTPUT
% functionName name of the requested function
global S4M
try
temp=dbstack;
functionName=temp(ik).name;
if S4M.matlab_version < 7
[dummy,functionName]=fileparts(functionName);
end
catch
functionName='???';
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?