Compile MATLAB Functions

Compile MATLAB® functions for use in applications coded in other languages

Before you can integrate MATLAB functions into external applications, you need to compile 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 compile 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 compile the MATLAB functions into a binary package the target language developer uses in developing their applications.

Apps

Library Compiler Package MATLAB functions for deployment as components for integration into other applications
Production Server Compiler Test and Package MATLAB functions for deployment to MATLAB Production Server

Functions

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 given string key
setmcruserdata Associate MATLAB data value with string key
%#function Pragma to help MATLAB Compiler SDK locate functions called through feval, eval, or graphics callback

Was this topic helpful?