Main Content

Standalone Applications

Create standalone applications from MATLAB® functions

You can deploy MATLAB code as a standalone application using MATLAB Compiler™ and share it royalty-free with other users. A standalone application can be an app designed using MATLAB App Designer or GUIDE, or it can be a command-line executable. The target system running a standalone application requires a MATLAB Runtime installation to run the application. It does not require a licensed copy of MATLAB. For details, see Install and Configure MATLAB Runtime.

To create standalone applications from Simulink® simulations, use Simulink Compiler.

Standalone applications can be created using the compiler.build.standaloneApplication function, or the mcc command, or the Application Compiler app.

Apps

Application CompilerPackage MATLAB programs for deployment as standalone applications

Functions

expand all

deploytoolOpen a list of application deployment apps
mccCompile MATLAB functions for deployment
createDeploymentScriptCreate a deployment script from a MATLAB Compiler PRJ file (Since R2022b)
compiler.build.standaloneApplicationCreate standalone application for deployment outside MATLAB (Since R2020b)
compiler.build.standaloneWindowsApplicationCreate a standalone application for deployment outside MATLAB that does not launch a Windows command shell (Since R2020b)
compiler.build.StandaloneApplicationOptionsOptions for building standalone applications (Since R2020b)
compiler.build.ResultsCompiler build results object (Since R2020b)
compiler.package.installerCreate an installer for files generated by MATLAB Compiler (Since R2020a)
compiler.package.InstallerOptionsOptions for creating MATLAB Compiler package installers (Since R2020a)
compiler.package.dockerCreate a Docker image for files generated by MATLAB Compiler on Linux operating systems (Since R2020b)
compiler.package.DockerOptionsCreate a Docker options object (Since R2020b)
compiler.runtime.createDockerImageCreate a Docker image that contains MATLAB Runtime (Since R2023b)
compiler.codetools.deployableSupportPackagesDetermine support packages used by files (Since R2021b)
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 file or function dependencies during MATLAB Compiler dependency analysis (Since R2020a)

Topics

Create Standalone Applications

Customize Applications

Package to Docker

Packaging

Parallel Computing

Dependency Analysis

Best Practices

Troubleshooting