Download and Install MATLAB Runtime
R2026bSupported Platforms: Windows®, Linux®, macOS
MATLAB® Runtime contains the libraries needed to run compiled MATLAB applications on a target system without a licensed copy of MATLAB. The system requirements for MATLAB Runtime are the same as an installation of MATLAB. For more information, see About MATLAB Runtime (MATLAB Compiler).
Download MATLAB Runtime Installer
Download the MATLAB Runtime installer at the latest update level for the selected release from the website at https://www.mathworks.com/products/compiler/matlab-runtime.html. This option is best for end users who want to run deployed applications.
If you have MATLAB installed, you can use the MATLAB function compiler.runtime.download (MATLAB Compiler) to download the MATLAB Runtime installer matching the version and update level of MATLAB from where the command is executed. If the machine already has a
MATLAB Runtime installer, the function returns the path to the installer. If the machine
is offline, it returns a URL to the MATLAB Runtime installer. This option is best for developers who want to create
application installers that contain MATLAB Runtime.
To install MATLAB Runtime noninteractively, see Install MATLAB Runtime Noninteractively (MATLAB Compiler).
For information on other ways of installing and distributing MATLAB Runtime, see About MATLAB Runtime (MATLAB Compiler).
Install MATLAB Runtime Interactively
To install MATLAB Runtime:
Extract the archive containing the MATLAB Runtime installer. The release part of the installer file name (for instance,
_R2026b_) changes from one release to the next.Platform Steps Windows Unzip the MATLAB Runtime installer.
Right-click the ZIP file
MATLAB_Runtime_R2026b_win64.zipand select Extract All.Linux Unzip the MATLAB Runtime installer at the terminal using the
unzipcommand.For example, if you are unzipping the R2026b MATLAB Runtime installer, at the terminal, type:
unzip MATLAB_Runtime_R2026b_glnxa64.zipmacOS
Unzip the MATLAB Runtime installer at the terminal using the
unzipcommand.unzip MATLAB_Runtime_R2026b_maca64.zipStart the MATLAB Runtime installer.
Platform Steps Windows Double-click the file
setup.exefrom the extracted files to start the installer.Linux At the terminal, type:
sudo -H ./installsudois only required if you install to a directory that you do not have write access to.Note
You may need to allow the root user to access the running X server:
xhost +SI:localuser:root sudo -H ./install xhost -SI:localuser:rootmacOS
Double-click the DMG file to start the installer.
When the MATLAB Runtime installer starts, it displays a dialog box. Read the information and then click Next to proceed with the installation.
In the Folder Selection dialog box, specify the folder where you want to install MATLAB Runtime.
You can have multiple versions of MATLAB Runtime on your computer, but only one installation for any particular version. If you have an existing installation of the same version, the MATLAB Runtime installer does not display the Folder Selection dialog box because it overwrites the existing installation in the same folder.
Caution
The installation path must not contain any non-ASCII characters.
Confirm your choices and click Next.
The MATLAB Runtime installer starts copying files into the installation folder.
On Linux and macOS platforms, after copying files to your disk, the MATLAB Runtime installer displays the Product Configuration Notes dialog box. This dialog box contains information necessary for setting your path environment variables. Copy the path information from this dialog box, save it to a text file, and then click Next.
For instructions on setting the path environment variables, see Set MATLAB Runtime Library Paths for Deployment (MATLAB Compiler).
Click Finish to exit the installer.
Default Install Folder
The default MATLAB Runtime installation folders for R2026b are specified in the following table:
| Platform | MATLAB Runtime Installation Folder |
|---|---|
| Windows | C:\Program Files\MATLAB\MATLAB
Runtime\R2026b |
| Linux | /usr/local/MATLAB/MATLAB_Runtime/R2026b |
| macOS | /Applications/MATLAB/MATLAB_Runtime/R2026b |
Install MATLAB Runtime Without Administrator Rights
On Linux, to install MATLAB Runtime without sudo privileges, select a folder that you have
write access to during installation.
On Windows, to install MATLAB Runtime as a user without administrator rights:
Install MATLAB Runtime on a Windows machine where you have administrator rights.
Copy the folder where MATLAB Runtime was installed to the machine without administrator rights. You can compress the folder into a zip file for distribution.
On the machine without administrator rights, add the
directory to the user’s<MATLAB_RUNTIME_INSTALL_DIR>\runtime\archPATHenvironment variable. For more information, see Set MATLAB Runtime Library Paths for Deployment (MATLAB Compiler).
Install Multiple MATLAB Runtime Versions on Single Machine
MCRInstaller supports the installation of multiple versions of
MATLAB Runtime on a target machine. This capability allows applications compiled with
different versions of MATLAB Runtime to execute side by side on the same machine.
If you do not want multiple MATLAB Runtime versions on the target machine, you can remove the unwanted ones. On Windows, run Add or Remove Programs from the Control Panel to remove a specific version. On Linux, manually delete the unwanted MATLAB Runtime directories. You can remove unwanted versions before or after installation of a more recent version of MATLAB Runtime because versions can be installed or removed in any order.
Note
Installing multiple versions of MATLAB Runtime on the same machine is not supported on macOS.
MATLAB and MATLAB Runtime on Same Machine
To test your deployed component on your development machine, you do not need an installation of MATLAB Runtime. The MATLAB installation that you use to compile the component can act as a MATLAB Runtime replacement.
You can install MATLAB Runtime for debugging purposes.
Modify Path
If you install MATLAB Runtime on a machine that already has MATLAB on it, you must adjust the system library path according to your needs.
To run deployed MATLAB code against MATLAB Runtime rather than MATLAB, ensure that your library path lists the MATLAB Runtime directories before any MATLAB directories. For information on setting environment variables, see Set MATLAB Runtime Library Paths for Deployment (MATLAB Compiler).
Alternatively, you can specify the location of MATLAB Runtime using the generated shell script for your compiled application.
Uninstall MATLAB Runtime
Windows
Start the uninstaller.
From the Windows Start menu, search for the Add or Remove Programs control panel, and double-click MATLAB Runtime in the list.
You can also start the MATLAB Runtime uninstaller from the
<MATLAB_RUNTIME_INSTALL_DIR>\bin\folder, where<arch>is your MATLAB Runtime installation folder and<MATLAB_RUNTIME_INSTALL_DIR>is an architecture-specific folder, such as<arch>win32orwin64.Select MATLAB Runtime from the list of products in the Uninstall Products dialog box and click Next.
Click Finish.
Linux
Close all instances of MATLAB and MATLAB Runtime.
Enter this command at the Linux terminal:
rm -rf <MATLAB_RUNTIME_INSTALL_DIR>
Caution
Be careful when using the
rmcommand, as deleted files cannot be recovered.
macOS
Close all instances of MATLAB and MATLAB Runtime.
Navigate to your MATLAB Runtime installation folder. For example, the installation folder might be named
MATLAB_Compiler_Runtime.appin your Applications folder.Drag your MATLAB Runtime installation folder to the trash, and then select Empty Trash from the Finder menu.
See Also
compiler.runtime.download (MATLAB Compiler)
Topics
- About MATLAB Runtime (MATLAB Compiler)
- Install MATLAB Runtime Noninteractively (MATLAB Compiler)
- MATLAB Runtime Startup Options (MATLAB Compiler)
- Set MATLAB Runtime Library Paths for Deployment (MATLAB Compiler)
- MATLAB Runtime Containers (MATLAB Compiler)