mfilename
Description
mfilename returns a string containing the file name of the newly called function. When called from within a file, it returns the name of that file. This allows the function to determine its name, even if the file name has been changed.
p = mfilename ('fullpath') returns the full path and name of the file to which the call is made, not including the file extension.
c = mfilename ('class') in the method, returns the class of the method, not including the @ sign. If called from a non-method, it gives an empty string.
Jacob
source share