Before you can integrate MATLAB functions into external applications, you need to package them for the target language. MATLAB Compiler SDK™ includes two apps and a command-line compiler for this purpose. The apps guide you in specifying functions to package and in creating an installer. Target-language developers install the compiled code on the development system, along with the MATLAB Runtime, which is necessary to run the code. At the command-line, you can package the MATLAB functions into a binary package the target language developer uses in developing their applications.
Library Compiler | Package MATLAB programs for deployment as shared libraries and components |
Production Server Compiler | Package MATLAB programs for deployment to MATLAB Production Server |
libraryCompiler | Build and package functions for use in external applications |
productionServerCompiler | Test, build and package functions for use with MATLAB Production Server |
mcc | Compile MATLAB functions for deployment |
mbuild | Compile and link source files against MATLAB generated shared libraries |
deploytool | Compile and package functions for external deployment |
componentinfo | Query system registry about COM component created with MATLAB Compiler SDK |
isdeployed | Determine whether code is running in deployed or MATLAB mode |
ismcc | Test if code is running during compilation process (using mcc) |
ctfroot | Location of files related to deployed application |
figToImStream | Stream figure as byte array encoded in specified format |
webfigure | Export a figure to a deployed application |
getmcruserdata | Retrieve MATLAB array value associated with a given key |
setmcruserdata | Associate MATLAB data value with a key |
%#function | Pragma to help MATLAB Compiler locate functions called through feval, eval, Handle Graphics callback, or objects loaded from MAT-files |
Install an ANSI C or C++ Compiler
Installing a supported C/C++ compiler
Create a C Shared Library with MATLAB Code
Learn how to create a C shared library.
Create a C++ Shared Library with MATLAB Code
Learn how to create a C++ shared library.
Create C/C++ Shared Libraries from Command Line
Use the command-line compiler to create C/C++ shared libraries.
Distribute C/C++ Shared Libraries to Application Developers
Distribute the following to the application developer integrating the shared library:
Create a .NET Assembly with MATLAB Code
Learn how to create a .NET assembly.
Package .NET Assemblies from Command Line
Using the mcc
command line to build your assembly
Distribute .NET Assemblies to Application Developers
Distribute the following to the application developer integrating the .NET assembly:
Configure Your Java Environment
Configuring the Java® environment for compilation of MATLAB code and development of Java applications
Create a Java Package with MATLAB Code
Learn how to create a Java package.
Package Java Applications from Command Line
Using the command-line compiler to create Java applications.
Map Functions to Java Class Methods
Mapping MATLAB functions to Java classes
Distribute Java Applications to Application Developers
Distribute the following to the application developer integrating the application:
Create a Python Package with MATLAB Code
Learn how to create a Python® package.
Package Python Applications from Command Line
MATLAB Compiler SDK cannot package MATLAB code that uses the MATLAB Python interface.
Distribute Python Applications to Application Developers
Distribute the following to the application developer integrating the application:
Package Deployable Archives with Production Server Compiler App
Package MATLAB applications into deployable archives using the Production Server Compiler app.
Package Deployable Archives from Command Line
Package MATLAB applications into deployable archives from the command line using the
mcc
command.
Build Excel Add-In and Deployable Archive
The Excel integration with MATLAB Production Server builds two artifacts. One is for the server and one is for the client.
Create a Generic COM Component with MATLAB Code
Learn how to create a generic COM component.
Package COM Components from Command Line
Using the mcc
command line to build COM components
Distribute COM Components to Application Developers
Distribute the following to the application developer integrating the component:The Library Compiler app generates an installer that packages all of the binary artifacts required for distributing a COM component.
How to customize the look and feel of the installer generated by the compiler app.
Including support packages when packaging MATLAB applications.
Simplify Compilation Using Macros
Information on macros and how they can simplify your work
Using path name, bundles, and wrapper files to build your MATLAB code
How Does MATLAB Deploy Functions?
To deploy MATLAB functions, the compiler performs these tasks:
Writing MATLAB code that can be packaged and deployed.
Dealing with MATLAB functions that carry state.
MATLAB Runtime Component Cache and Deployable Archive Embedding
How to override the default deployable archive embedding behavior and how to use MATLAB Runtime Component Cache
Using the MATLAB Runtime User Data Interface
Information on how to access MATLAB Runtime data
Display the MATLAB Runtime Initialization Messages
Procedure to create console messages for end users
Functions not supported by MATLAB Compiler / MATLAB Compiler SDK
Functions not able to be compiled with MATLAB Compiler™ or MATLAB Compiler SDK
Limitations and restrictions regarding what can be compiled