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. Standalone applications run on Windows®, Linux®, and macOS corresponding to the platform on which they are generated.

To run standalone applications, install MATLAB Runtime on the target machine. For more information, see Install and Configure MATLAB Runtime.


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 shell for building standalone applications build results object
compiler.package.installerCreate an installer for files generated by MATLAB Compiler
compiler.package.InstallerOptionsOptions for creating MATLAB Compiler package installers
compiler.package.dockerCreate a Docker image for files generated by MATLAB Compiler on Linux operating systems
compiler.package.DockerOptionsCreate a Docker options object
compiler.codetools.deployableSupportPackagesDetermine support packages used by files
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 MATLAB Runtime version number that matches MATLAB version
%#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.

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

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

MATLAB Data Files in Compiled Applications

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


mcc Command Arguments Listed Alphabetically

Quick reference table of MATLAB Compiler™ options, listed alphabetically.

mcc Command Line Arguments Grouped by Task

Quick reference table of MATLAB Compiler options, grouped by functionality.

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

Add MATLAB Runtime to the Mac Application Launcher installation area.

Dependency Analysis

Dependency Analysis Using MATLAB Compiler

MATLAB Compiler uses a dependency analysis function to find and include files.

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

Learn how dependency analysis handles MEX-files, DLLs, and shared libraries.

How Does MATLAB Deploy Functions?

Learn the steps performed by MATLAB Compiler for deployment.

Best Practices

Write Deployable MATLAB Code

Write flexible MATLAB code that can be packaged and deployed.

Standalone Applications and Arguments

How to run standalone 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

Include 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™


MATLAB Compiler has limitations regarding what can be compiled.

Testing Failures

If you encounter errors testing your application, ensure MATLAB Runtime is installed correctly.

Investigate Deployed Application Failures

Diagnose application failure during end-user deployment.