Binary MEX file-name extension
Find the MEX file extension for the system you are currently working on.
ext = mexext
ext = mexa64
Your results reflect your system.
Get the list of file extensions for supported platforms.
extlist = mexext('all');
mex command identifies a platform by its
arch value, which is the output of the
computer('arch') command. For Mac platforms, the value is
arch field in
'maci64', and display the corresponding
for k=1:length(extlist) if strcmp(extlist(k).arch, 'maci64') disp(sprintf('Arch: %s File Extension: %s', extlist(k).arch, extlist(k).ext)) end end
Arch: maci64 File Extension: mexmaci64
ext— File-name extension
File-name extension for MEX file, returned as one of these values.
MEX File Platform-Dependent Extension
|Platform||Binary MEX File Extension|
Apple Mac (64-bit)
extlist— All file-name extensionsstructure
To use the MEX file-name extension
in makefiles or scripts outside MATLAB®, type one of the following
from the system command prompt. The script is located in the
For example, the following commands are in a GNU® makefile.
ext = $(shell mexext) yprime.$(ext) : yprime.c mex yprime.c