MFILENAME MFILENAME Name of Current Function Usage Returns a string describing the name of the current function. For M-files this string will be the complete filename of the function. This is true even for subfunctions. The syntax for its use is y = mfilename