Download and Install MATLAB

You can install MATLAB, Simulink, and accompanying toolboxes and blocksets on your personal Windows, Linux, or macOS computer by downloading and running the interactive MATLAB installer.

Before You Install

Before you install MATLAB, keep these points in mind:

Install MATLAB

To install MATLAB, download the installer for your platform and MATLAB release from MathWorks Downloads. Then, run the installer and follow the prompts to complete the installation.

Security Considerations

When installing products, use a secure location, limit privileges when possible, and monitor the installation. For more details, see Security Considerations for Installing MathWorks Products.

This table provides more detailed installation instructions for each platform.

PlatformInstructions
Windows

To install MATLAB on Windows:

  1. From MathWorks Downloads, select a MATLAB release and download the installer.

  2. Double-click the downloaded installer and follow the prompts to complete the installation.

    Default installation folder: C:\Program Files\MATLAB\R20XXy

To start MATLAB after the installation is complete, see Start MATLAB on Windows Platforms (MATLAB).

Linux

To install MATLAB on Linux:

  1. From MathWorks Downloads, select a MATLAB release and download the installer.

  2. Unzip the downloaded installer files and navigate to the unzipped folder. For example, use these commands to unzip the installer for release R20XXy to a folder of the same name, and then navigate to the folder.

    unzip matlab_R20XXy_Linux.zip -d ./matlab_R20XXy_Linux
    cd ./matlab_R20XXy_Linux
  3. In the installation folder, run the install script and follow the prompts to complete the installation.

    xhost +SI:localuser:root
    sudo -H ./install
    xhost -SI:localuser:root

    sudo is required only when you install products to a folder where you do not have write permissions, which might include the default installation folder. The xhost commands are required only when you install products as the root user with sudo. These commands temporarily give the root user access to the graphical display required to run the installer.

    Default installation folder: /usr/local/MATLAB/R20XXy

To start MATLAB after the installation is complete, see Start MATLAB on Linux Platforms (MATLAB).

macOS

To install MATLAB on macOS:

  1. From MathWorks Downloads, select a MATLAB release and download the installer.

  2. Unzip the downloaded DMG file and double-click it to mount the installer as a virtual disk.

  3. Double-click the installer and follow the prompts to complete the installation.

  4. (macOS Apple silicon only) Install a Java runtime on your Mac. To get a compatible runtime, see MATLAB on Apple Silicon Macs.

    Default installation folder: /Applications/MATLAB_R20XXy.app

To start MATLAB after the installation is complete, see Start MATLAB on macOS Platforms (MATLAB).

If you need to install additional products later, use the Add-On Explorer in MATLAB. On the Home tab, in the Environment section, click Add-Ons.

To access additional resources for which you are licensed, go to matlab.mathworks.com and sign in to your MathWorks Account. Resources include MATLAB Online (access MATLAB from a web browser) and online training (self-paced interactive courses).

Troubleshoot Common Installation Issues

If you have trouble installing MATLAB products, review the following common issues that might occur during the installation process. If you continue to have problems, contact support. Provide any error messages, log files, or screenshots related to the problem in your help request.

Internet Connection Issues

If you lose your internet connection while installing, try rerunning the installer. If you continue to have connection issues, see Why do I get a connection error when installing or activating MATLAB or other MathWorks products?

tmp Folder Not Large Enough

During installation, the MathWorks installer temporarily stores files in the tmp folder of your platform. If you get an error that your tmp folder is not large enough to complete the installation, you can change where the installer stores these files. See How can I change the temp directory the MATLAB installer uses?

Licensing Issues

During installation, the license you want to select might not be listed. Or, you might be prompted to enter an Activation Key and not have the option to select a license.

  • If your MathWorks Account is tied to an organization, such as a company or university, contact your IT department to get the license information needed to complete the installation.

  • If your MathWorks Account is not tied to an organization, you might need to purchase a new license or get a trial from the MathWorks Store.

MATLAB Does Not Start

If MATLAB does not start after installation, try following the potential solutions listed in the MATLAB Answer for your platform.

Related Topics