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 Download and Install 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 Standalone Application Compiler app.

Apps

Standalone Application CompilerPackage MATLAB programs for deployment as standalone applications (Since R2025a)

Functions

expand all

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
compiler.build.standaloneWindowsApplicationCreate a standalone application for deployment outside MATLAB that does not launch a Windows command shell
compiler.build.StandaloneApplicationOptionsOptions for building standalone applications
compiler.build.ResultsCompiler build results object
compiler.package.installerCreate an installer for files generated by MATLAB Compiler
compiler.package.InstallerOptionsOptions for creating MATLAB Compiler package installers
compiler.runtime.customInstallerCreate a MATLAB Runtime installer for the specified files generated by MATLAB Compiler (Since R2024b)
compiler.package.dockerCreate a Docker image for files generated by MATLAB Compiler on Linux operating systems
compiler.package.DockerOptionsCreate a Docker options object
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

Topics

Create Standalone Applications

Customize Applications

Package to Docker

Packaging

Parallel Computing

Dependency Analysis

Best Practices

Troubleshooting