Advertisement
bigyan

dbstack and mfilename

May 22nd, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.17 KB | None | 0 0
  1. function test()
  2.     disp(mfilename);
  3.     [ST I]=dbstack;
  4.     disp(ST(1).name);
  5.     test2();
  6. end
  7.  
  8. function test2()
  9.     [ST I]=dbstack;
  10.     disp(ST(1).name);
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement