What If I Do Not Upgrade?
If you do not update your MEX source code, you can still build your MEX files using
-compatibleArrayDims option. Use this flag to ensure the desired
behavior across versions of MATLAB®. If you build without the
then one or more of the following could occur:
Increased compiler warnings and/or errors from your native compiler
Can I Run Existing Binary MEX Files?
You can run existing binary MEX files without upgrading the files for use with the
64-bit API. However, incompatibilities might prevent execution of an existing MEX
file. If your MEX file does not execute properly, search for
in the relevant MATLAB release notes and review the Compatibility Considerations
Must I Update Source MEX Files on 64-Bit Platforms?
If you build MEX files on 64-bit platforms or write platform-independent
applications, you must upgrade your MEX files. To upgrade,
review your source code, make appropriate changes, and rebuild using the
What action you take now depends on whether your MEX files currently use the 64-bit API. The following table helps you identify your next actions.
|State of Your Source Code
I do not plan to update my code.
You have chosen to opt out and you must build using the
I want to update my code. Where do I start?
I use MEX files, but do not have access to the source code.
Ask the owner of the source code to follow the steps in Upgrade MEX Files to Use 64-Bit API.
I use third-party libraries.
Ask the vendor if the libraries support 64-bit indexing. If
not, you cannot use these libraries to create 64-bit MEX files.
Build your MEX file using the
If the libraries support 64-bit indexing, review your source code, following the steps in Upgrade MEX Files to Use 64-Bit API, and then test.
I updated my code in a previous release.
No change required. However, you no longer need to use the
My MEX file generates errors.
You must recompile the MEX file from the source code. If