About the MATLAB Runtime
The MATLAB® Runtime is a standalone set of shared libraries, MATLAB code, and other files that enables the execution of MATLAB files on computers without an installed version of MATLAB. Applications that use artifacts built with MATLAB Compiler SDK™ require access to an appropriate version of the MATLAB Runtime to run.
End-users of compiled artifacts without access to MATLAB must install the MATLAB Runtime on their computers or know the location of a network-installed MATLAB Runtime. The installers generated by the compiler apps may include the MATLAB Runtime installer. If you compiled your artifact using
should direct your end-users to download the MATLAB Runtime installer from the website
For more information, see Install and Configure MATLAB Runtime.
How is MATLAB Runtime Different from MATLAB?
The MATLAB Runtime differs from MATLAB in several important ways:
In MATLAB Runtime, MATLAB files are encrypted and immutable.
MATLAB has a desktop graphical interface. MATLAB Runtime has all the MATLAB functionality without the graphical interface.
MATLAB Runtime is version-specific. You must run your applications with the version of MATLAB Runtime associated with the version of MATLAB Compiler SDK with which it was created. For example, if you compiled an application using release R2020b of MATLAB, end users must have version 9.9 or later of MATLAB Runtime installed. Use
mcrversionto return the version number of MATLAB Runtime.
The MATLAB paths in a MATLAB Runtime instance are fixed and cannot be changed. To change them, you must first customize them within MATLAB.
Performance Considerations for MATLAB Runtime
MATLAB Compiler SDK was designed to work with a large range of applications that use the MATLAB programming language. Because of this, run-time libraries are large.
Since MATLAB Runtime provides full support for the MATLAB language, including the Java® programming language, starting a compiled application takes approximately the same amount of time as starting MATLAB. The amount of resources consumed by MATLAB Runtime is necessary in order to retain the power and functionality of a full version of MATLAB.
Calls into MATLAB Runtime are serialized, so calls into MATLAB Runtime are threadsafe. This can impact performance.