MATLAB: How to create 32-bit Windows applications using MATLAB Compiler or MATLAB Compiler SDK

add-inscompilerexcelexecutableMATLABMATLAB Compilersdkstandalonewin-32win-64win32win64

I am on 64-bit MATLAB R2016a on Windows platform. How do I create 32-bit applications, components, and libraries using MATLAB Compiler or MATLAB Compiler SDK?

Best Answer

Starting in R2016a, applications, components, and libraries created by MATLAB Compiler or MATLAB Compiler SDK will not run in 32-bit mode. The exception is add-ins for 32-bit Excel, which are configured to run on a 64-bit MATLAB Runtime. Please read the following for more details:
MATLAB Compiler
  •  As of R2016a, 32-bit standalone applications for Windows will no longer be supported. You will be able to create and share 64-bit standalone applications only. However, you can continue to use the R2015b (or earlier) 32-bit version of MATLAB Compiler to deploy to 32-bit Windows.
  •  Using 64-bit MATLAB Compiler on Windows, you will be able to create add-ins that work with 32- or 64-bit Excel running on 64-bit Windows. This feature will be introduced in MATLAB Compiler R2015b. 
MATLAB Compiler SDK
  •  As of R2016a, you will no longer be able to create 32-bit C/C++ shared libraries, Microsoft® .NET assemblies, COM components, or Java® classes. Please update your applications so you can use 64-bit components for integration.  If you require 32-bit compatibility, you are advised to use R2015b (or earlier) 32-bit MATLAB.  
  •  For MATLAB Production Server clients:
   -  Java, Python, and .NET clients will not be affected, since they are platform independent.
   -  32-bit C/C++ clients for MATLAB Production Server will no longer be available. Please update your C/C++ applications to use 64-bit clients.