| MATLAB C++ Math Library | Search  Help Desk |
| mfilename | See Also |
The name of the currently running M-file
C++ Prototype
mwArray mfilename();
C++ Syntax
#include "matlab.hpp" mwArray R; // Return value R = mfilename();
MATLAB Syntax
mfilename
Description
mfilename returns a string containing a NULL matrix. There is no current M-file when a C++ application executes. For those standalone programs built by compiling M-files with the MATLAB compiler, the MATLAB compiler will translate the call into the appropriate string. Otherwise, for stand-alone programs built by hand, mfilename returns an empty string.
See Also
mfilename Calling Conventions