source: prdatasets/pr_callername.m @ 146

Last change on this file since 146 was 137, checked in by bduin, 5 years ago
File size: 280 bytes
RevLine 
[137]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.