Package MATLAB Functions
MATLAB
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 compiler.package.installer
for
this purpose.
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.
Apps
Library Compiler | Package MATLAB programs for deployment as shared libraries and components |
Production Server Compiler | Package MATLAB programs for deployment to MATLAB Production Server |
Functions
Topics
Packaging
- 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. - Create Sample Code to Call Exported Function
Generate sample code in C++, .NET, Java®, or Python® by including sample files during packaging. - 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
- Limitations
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 thembuild
utility and creating standalone applications. - Supported MATLAB Data Types for Client and Server Marshaling
List of supported and unsupported MATLAB data types.