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 Compiler | Package MATLAB programs for deployment as standalone applications |
Functions
Topics
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. - Access Files in Packaged Applications
Include and access additional files in packaged applications.
Package to Docker
- Package MATLAB Standalone Applications into Docker Images
Example on packaging a MATLAB standalone application into a Docker® image.
Packaging
- 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
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. - Include MEX-Files, DLLs, or Shared Libraries
When you compile MATLAB functions containing MEX-files, ensure that the dependency analyzer can find them. - 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
Theloadlibrary
function in MATLAB allows you to load shared library into MATLAB. - Access Files in Packaged Applications
Include and access additional files in packaged applications.
Troubleshooting
- Functions Not Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK
Refer to functions not able to be compiled with MATLAB Compiler or MATLAB Compiler SDK™. - Limitations
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.