MATLAB Function Reference    
mfilename

The name of the currently running M-file

Syntax

Description

mfilename returns a string containing the name of the most recently invoked M-file. When called from within an M-file, it returns the name of that M-file, allowing an M-file to determine its name, even if the filename has been changed.

When called from the command line, mfilename returns an empty matrix.


 mexext min