Skip to Main Content Skip to Search
Product Documentation

mexext - Binary MEX-file name extension

Syntax

ext = mexext
extlist = mexext('all')

Description

ext = mexext returns the file name extension for the current platform.

extlist = mexext('all') returns a struct with fields arch and ext describing MEX-file name extensions for all platforms.

Tips

For a table of file extensions, see Using Binary MEX-Files.

Examples

Find the MEX-file extension for the system you are currently working on:

ext = mexext

ext =
   mexw32

Find the MEX-file extension for an Apple Macintosh system:

extlist = mexext('all');

for k=1:length(extlist)
   if strcmp(extlist(k).arch, 'maci64')
   disp(sprintf('Arch: %s      Ext: %s', ...
           extlist(k).arch, extlist(k).ext))
end, end

Arch: maci64       Ext: mexmaci64

See Also

mex

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS