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 compiler.build.standaloneApplication 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.

Apps

Application CompilerPackage MATLAB programs for deployment as standalone applications

Functions

expand all

applicationCompilerBuild and package functions into standalone applications
deploytoolOpen a list of application deployment apps
mccCompile MATLAB functions for deployment
createDeploymentScriptCreate a deployment script from a MATLAB Compiler PRJ file
compiler.build.standaloneApplicationCreate a 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.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

Topics

Create Standalone Applications

Customize Applications

Package to Docker

Packaging

Parallel Computing

Mac OS X

Dependency Analysis

Best Practices

Troubleshooting