Main Content

Package MATLAB Functions

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

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 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.


Library CompilerPackage MATLAB programs for deployment as shared libraries and components


expand all

libraryCompilerOpen the Library Compiler app
productionServerCompilerTest, build and package functions for use with MATLAB Production Server
deploytoolOpen a list of application deployment apps COM component for deployment outside MATLAB C shared library C++ shared library .NET assembly for deployment outside MATLAB Java package for deployment outside MATLAB Python package for deployment outside MATLAB an archive for deployment to MATLAB Production Server or Docker Microsoft Excel add-in for MATLAB Production Server
compiler.package.microserviceDockerImageCreate a microservice Docker image using files generated by MATLAB Compiler SDK
mccCompile MATLAB functions for deployment
mbuildCompile and link source files against MATLAB generated shared libraries
compiler.package.installerCreate an installer for files generated by MATLAB Compiler
compiler.package.InstallerOptionsOptions for creating MATLAB Compiler package installers
isdeployedDetermine whether code is running in deployed or MATLAB mode
ismccTest if code is running during compilation process (using mcc)
ctfrootLocation of files related to deployed application
%#functionPragma to help MATLAB Compiler locate functions called through feval, eval, Handle Graphics callback, or objects loaded from MAT-files
figToImStreamStream figure as byte array encoded in specified format
getmcruserdataRetrieve MATLAB array value associated with a given key
setmcruserdataAssociate MATLAB data value with a key
componentinfoQuery system registry about COM component created with MATLAB Compiler SDK



Deployment and Integration

Limitations and Restrictions