source:
prdatasets/pr_callername.m
@
157
Last change on this file since 157 was 137, checked in by bduin, 5 years ago | |
---|---|
File size: 280 bytes |
Rev | Line | |
---|---|---|
[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 | ||
9 | function name = pr_callername | |
10 | ||
11 | [ss,i] = dbstack; | |
12 | if length(ss) < 3 | |
13 | name = []; | |
14 | else | |
15 | name = ss(3).name; | |
16 | end |
Note: See TracBrowser
for help on using the repository browser.