Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

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 the all platforms.

Remarks

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, 'maci')
   disp(sprintf('Arch: %s      Ext: %s', ...
           extlist(k).arch, extlist(k).ext))
end, end

Arch: maci       Ext: mexmaci

See Also

mex

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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