Main Content

mexFunctionName (C and Fortran)

Name of current MEX function

C Syntax

#include "mex.h"
const char *mexFunctionName(void);

Fortran Syntax

#include "fintrf.h"
character*(*) mexFunctionName()

Description

mexFunctionName returns the name of the current MEX function.

Output Arguments

expand all

Current MEX function name, returned as const char* in C or character*(*) in Fortran.

Examples

To open an example, type:

edit([fullfile(matlabroot,"extern","examples","mex","filename")]);

where filename is:

Version History

Introduced before R2006a