Platform Compatibility

Verify the MEX-File Is Built For Your Platform

If you obtain a binary MEX-file from another source, be sure that the file was compiled for the same platform on which you want to run it. The file extension reflects the platform, as shown in the following table. To determine the extension for your platform, use the mexext function.

PlatformBinary MEX-File Extension

Linux® (64-bit)

mexa64

Apple Mac (64-bit)

mexmaci64

Microsoft® Windows® (32-bit)

mexw32

Windows (64-bit)

mexw64

Verify Your Architecture on Windows Platforms

Verify the MEX-file is for the same architecture, 32- vs. 64-bit.

On non-Windows platforms, MATLAB® is supported for 64-bit architectures only.

Was this topic helpful?