Package MATLAB Functions
Compiler SDK™ enables you to build deployable archives in a target language
that include MATLAB functions. You can build these artifacts at the MATLAB command line using any of the
compiler.build family of functions, or specify
additional compile time options using
mcc. You can also
package the artifact into an installer that installs the necessary files and
MATLAB Runtime libraries onto the target machine. MATLAB
Compiler SDK includes two
deploytool apps and the
command line function
To incorporate a deployable archive into an application in the target language, you can use MATLAB Compiler SDK generated sample files or create your own application. Distribute the application to end users along with MATLAB Runtime, which contains libraries necessary to run the code.
|Library Compiler||Package MATLAB programs for deployment as shared libraries and components|
|Create a deployment script from a MATLAB
|Create COM component for deployment outside MATLAB|
|Create C shared library|
|Create C++ shared library|
|Create .NET assembly for deployment outside MATLAB|
|Create Java package for deployment outside MATLAB|
|Create Python package for deployment outside MATLAB|
|Create an archive for deployment to MATLAB Production Server or Docker|
|Create Microsoft Excel add-in for MATLAB Production Server|
|Create a microservice Docker image using files generated by MATLAB Compiler SDK|
|Compile MATLAB functions for deployment|
|Compile and link source files against MATLAB generated shared libraries|
Path, State Detection, and Version
- How Does MATLAB Deploy Functions?
Learn the steps performed by MATLAB Compiler™ for deployment.
- Write Deployable MATLAB Code
Write flexible MATLAB code that can be packaged and deployed.
- Access Files in Packaged Applications
Include and access additional files in packaged applications.
- State-Dependent Functions
Dealing with MATLAB functions that carry state.
- Customize an Application
How to customize the look and feel of the installer generated by the compiler app.
- Manage Support Packages
Including support packages when packaging MATLAB applications.
Deployment and Integration
- Deployable Archive
When MATLAB Compiler or MATLAB Compiler SDK creates an application or shared library, it bundles the content into an embedded deployable archive, which is known as the CTF archive.
- Distribute Files to Application Developers
Distribute files generated by MATLAB Compiler SDK and integrate them in an application.
- Files Generated After Packaging MATLAB Functions
Descriptions for files generated after packaging MATLAB functions.
- Manage Application State in Deployed Archives
Test application before deployment and cache data in application archives deployed to MATLAB Production Server™.
Limitations and Restrictions
MATLAB Compiler has limitations regarding what can be compiled.
- Functions Not Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK
Refer to functions not able to be compiled with MATLAB Compiler or MATLAB Compiler SDK.
- Troubleshoot mbuild
Issues involving the
mbuildutility and creating standalone applications.
- Supported MATLAB Data Types for Client and Server Marshaling
List of supported and unsupported MATLAB data types.