Main Content

Standalone Applications

Create standalone applications from MATLAB® functions

Create a standalone application if you want to run MATLAB code on target machines that do not have MATLAB installed. Compile the MATLAB code by running the or mcc command, or by using the Application Compiler app.

To run standalone applications, install the MATLAB Runtime. For more information, see Install and Configure the MATLAB Runtime. Standalone applications run on Windows®, Linux®, and macOS.


Application CompilerPackage MATLAB programs for deployment as standalone applications


expand all

applicationCompilerBuild and package functions into standalone applications
deploytoolOpen a list of application deployment apps
mccCompile MATLAB functions for deployment a standalone application for deployment outside MATLAB a standalone application for deployment outside MATLAB that does not launch a Windows command prompt a standalone application options object build results object
compiler.package.installerCreate an installer for files generated by the mcc command
compiler.package.InstallerOptionsCreate an installer options object
compiler.package.dockerCreate a docker image for files generated by MATLAB Compiler on Linux operating systems
compiler.package.DockerOptionsCreate a docker options object
ctfrootLocation of files related to deployed application
isdeployedDetermine whether code is running in deployed or MATLAB mode
ismccTest if code is running during compilation process (using mcc)
mcrversionReturn the MATLAB Runtime version number matching the version of MATLAB
%#functionPragma to help MATLAB Compiler locate functions called through feval, eval, Handle Graphics callback, or objects loaded from MAT-files
%#excludeIgnore a file or function dependency during dependency analysis while executing the mcc command


Create Standalone Applications

Create Standalone Application from MATLAB

Try an example on creating, installing, and running a standalone MATLAB application.

Create Standalone Applications from the Command Line

Options to create standalone applications form the MATLAB command line or your system command line.

Customize Applications

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.

Run Applications Using a Network Installation of MATLAB Runtime (Windows Only)

Describes the steps you must follow to run applications using a network install of MATLAB Runtime

MATLAB Data Files in Compiled Applications

Using MATLAB data files in compiled applications

Package to Docker

Package MATLAB Standalone Applications into Docker Images

Example on packaging a MATLAB standalone application into a Docker image.

Parallel Computing

Use Parallel Computing Toolbox in Deployed Applications

Procedure to pass a cluster profile to an application that uses the Parallel Computing Toolbox™.

Mac OS X

Integrate Application with Mac OS X Finder

Mac graphical applications, opened through the Mac OS X finder utility, require additional configuration if MATLAB software or the MATLAB Runtime are not installed in default locations.

Dependency Analysis

Dependency Analysis

Basics about the dependency analysis function

Dependency Analysis Function and User Interaction with the Compilation Path

MATLAB Compiler™ uses the MATLAB search path to analyze dependencies.

MEX-Files, DLLs, or Shared Libraries

How the dependency function handles MEX-files, DLLs, and shared libraries

How Does MATLAB Deploy Functions?

To deploy MATLAB functions, the compiler performs these tasks:

Best Practices

Write Deployable MATLAB Code

Writing MATLAB code that can be packaged and deployed.

Standalone Applications and Arguments

How to pass arguments to standalone applications and run applications that use arguments

Calling Shared Libraries in Deployed Applications

The loadlibrary function in MATLAB allows you to load shared library into MATLAB.

MATLAB Data Files in Compiled Applications

Using MATLAB data files in compiled applications


Functions Not Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK

Functions not able to be compiled with MATLAB Compiler or MATLAB Compiler SDK™


Limitations and restrictions regarding what can be compiled

Testing Failures

After you have successfully compiled your application, the next step is to test it on a development machine and deploy it on a target machine.

Investigate Deployed Application Failures

Process to determine application failure at the end-user

Problems Setting MATLAB Runtime Paths

Issues related to setting the MATLAB Runtime path