Binary MEX file-name extension
Display File Extension for Your Computer
Find the MEX file extension for the system you are currently working on.
ext = mexext
ext = 'mexa64'
Your results reflect your system.
Find MEX File Extension for Mac Platform
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 extensions
All file-name extensions, returned as a structure with these fields:
arch — Platform
Platform, returned as a character vector. The name of the platform
is the output of the
ext — File extension
File extension, returned as a character vector.
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
Run code in the background using MATLAB®
backgroundPool or accelerate code with Parallel Computing Toolbox™
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
Introduced before R2006a