getting script filename

getting script filename

Post by zampala ba » Sat, 28 Nov 2009 22:15:06


Hi,
is there a way to get the basename of a script within the script itself?
I mean, if I'm running my_script.m, is there a way to save the string "my_script" in a variable? This is for log purposes.

Thanks in advance,

mirko
 
 
 

getting script filename

Post by Jan Simo » Sun, 29 Nov 2009 00:23:04

Dear Mirko!


See mfilename.

Kind regards, Jan