source: prdatasets/pr_callername.m

Last change on this file was 137, checked in by bduin, 5 years ago
File size: 280 bytes
Line 
1%PR_CALLERNAME
2%
3% Needed here as it doen not exist in some old versions of PRTools
4%
5%   NAME = PR_CALLERNAME
6%
7% Returns the name of the calling function
8
9function name = pr_callername
10
11[ss,i] = dbstack;
12if length(ss) < 3
13        name = [];
14else
15        name = ss(3).name;
16end
Note: See TracBrowser for help on using the repository browser.