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|
|Production Server Compiler||Package MATLAB programs for deployment to MATLAB Production Server|
|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|
|Create an installer for files generated by MATLAB Compiler|
|Options for creating MATLAB Compiler package installers|
Path, State Detection, and Version
|Determine whether code is running in deployed or MATLAB mode|
|Test if code is running during compilation process (using |
|Location of files related to deployed application|
|Pragma to help MATLAB
Compiler locate functions called
|Ignore file or function dependencies during MATLAB Compiler dependency analysis|
|Stream figure as byte array encoded in specified format|
|Retrieve MATLAB array value associated with a given key|
|Associate MATLAB data value with a key|
|Query system registry about COM component created with MATLAB Compiler SDK|
- 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
- About the 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.