Install Products Online

Follow these instructions to install MATLAB® on a single machine using your MathWorks Account, for any license type (end user or administrator). You must have an internet connection during the installation process.

Make sure you have the minimum System Requirements for MATLAB.

Step 1: Preparation

To run the installer interactively with an internet connection, you need the following:

  • An internet connection. If you do not have an internet connection, follow the instructions in Install Products Offline (Installation, Licensing, and Activation).

  • Your email address and your MathWorks® Account password. You need them to log in to your account during installation. If you have multiple licenses linked to your account, determine which license you want to install.

    If you are an end user on a network license and you do not have a MathWorks Account, you can create one during installation. You must have an Activation Key to create an account. An Activation Key is the unique code that identifies a license. Ask the administrator of the license for the Activation Key.

  • Correct permissions to install the software. If you have questions about permissions, ask your system administrator.


    While you use an administrator account to install the software, you typically do not want to activate the software for an administrative user account. Specify the non-privileged account that will use the software when you activate it. Running MATLAB as a user with administrator privileges is not recommended.

    • Windows — Get the name and password for an account on your computer that has administrator privileges.

    • Linux — Get the root password. You can install MATLAB software without superuser privileges, however, it limits certain installation options. For example, if you want to set up symbolic links to the matlab command, install product files in a protected folder, or edit the system boot script, you must have superuser status.

    • macOS — Get the name and password of an administrator account on your computer. The administrator account is the user account you set up when you configured your macOS system; this account is not your MathWorks Account. During installation, enter this name and password in the Authenticate dialog box.

  • To consider disabling anti-virus software and Internet security applications on your system during installation. These applications can slow the installation process or cause it to appear unresponsive (or to hang).

When you are ready, proceed to Install Products Online (Installation, Licensing, and Activation).

Step 2: Start the Installer

  1. Download the installer from the MathWorks website.

    When you select an installer on the website, you receive the files that the installer needs in order to run on your selected platform, not the product files. Run the installer to select products that you want to install on the computer where you are logged in. The installer downloads the products that it needs from MathWorks, if necessary.

  2. Start the installer. The method you use to start the installer depends on your platform.

    • Windows

      If you click Run when you select the installer on the MathWorks website, the installer starts automatically. If you saved the installer instead, double-click the self-extracting installer file in the folder where you saved it. The name of the self-extracting installer file is matlab_release_$ARCH, where release is the release you are installing (for example R2019b) and $ARCH is the selected architecture.

      The installer should start automatically after file extraction is complete.

      To restart the installer later, click setup.exe. This file is located in the top level of the folder where you extracted the files.

    • macOS

      Double-click the dmg file that you downloaded from the MathWorks website. Double-click

    • Linux

      Use the unzip command to extract the files from the archive file that you downloaded from the MathWorks website. After extracting the files, execute the installer command:


Step 3: Install Using a MathWorks Account

Leave the Log In with a MathWorks Account option selected (the default), and then click Next. During installation, you log in to your MathWorks Account, select the license you want to install, and follow the prompts in the installer.

If your Internet connection requires a proxy server, click Connection Settings. Enter the server name, port, and password in the Connection Settings page. MathWorks supports Basic authentication and Digest authentication proxy configurations.


On Windows systems, the installer uses your system proxy settings, by default. If your proxy server requires you to log in, the installer prompts you for your login information.

Step 4: Review the Software License Agreement

Review the software license agreement and, if you agree with the terms, select Yes and click Next.


To view the end user license agreement at any time after installation, execute the following command in the MATLAB command window:

>> edit( fullfile(matlabroot, 'license_agreement.txt') )

Step 5: Sign in to Your MathWorks Account

To log in to your MathWorks Account, enter your email address and password, and click Next. The installer contacts MathWorks to retrieve information about the licenses linked to your account. If you have enabled Two-Step Verification on your account, a verification code is sent to your primary method.

If you do not have a MathWorks Account, select the Create a MathWorks Account (requires an Activation Key) option and click Next. You are prompted to enter the data needed to create the account.

Create a MathWorks Account

To create an account, enter your email address, first name, last name, and password. You must also provide an Activation Key because a newly created account does not have any licenses linked to it.

The Activation Key identifies the license you want to install. The administrator of this license can retrieve the key by visiting the License Center at the MathWorks website.


Entering dashes or spaces for the Activation Key is optional.

Click Next to create your account.


When you create a new MathWorks Account, you must verify your email address before you can proceed with installation. Before you click Next in the Email Verification Required dialog box, go to your email program, open the message sent to you by MathWorks, and click the verification link. Then return to this dialog box and click Next.

Step 6: Enter Two-Step Verification Code

If you have Two-Step Verification enabled (in your MathWorks Account), you will be prompted to enter the verification code sent to your primary method when you signed in to your MathWorks Account. If you do not have Two-Step Verification enabled, you can go directly to the next step.

Enter the verification code sent to your primary method.

Click Next to proceed with installation.

Step 7: Select the License You Want to Install

Select a license from the list of licenses linked to your MathWorks Account and click Next.

If you want to install products on a license that is not linked to your MathWorks Account:

  1. Select the Enter an Activation Key for a license not listed option.

  2. Enter an Activation Key and click Next.

    An Activation Key is the unique code that identifies a license. Use it to activate a license or allow licensed end users to link their MathWorks Account with a license. The administrator on the license can retrieve the key by visiting the License Center on the MathWorks website.

Specify an Activation Key

If there are no licenses linked to your account, or if permission to activate is disabled on the license you selected, the installer displays the Activation Key dialog box. Enter the required Activation Key and click Next. Ask the administrator on the license for the Activation Key.


Entering dashes or spaces for the Activation Key is optional.

Step 8: Specify the Installation Folder

Specify the name of the folder where you want to install MathWorks products. Accept the default installation folder, or click Browse to select a different one. If the folder does not exist, the installer creates it.

When specifying a folder name, you can use any alphanumeric character and some special characters, such as underscores. If you make a mistake while entering a folder name and want to start over, click Restore Default Folder. After making your selection, click Next.

Step 9: Specify Products to Install

From the product list, specify which products you want to install. The list shows all the products associated with the license you selected, or with the Activation Key or File Installation Key you specified. If you do not want to install a particular product, clear the check box next to its name. MATLAB is installed by default.


If the products you select exist in the default download location on your computer, the installer uses the local files for installation instead of downloading them from MathWorks. If you want to download the products again, go back to the Folder Selection dialog box and select a different installation folder.

After selecting the products you want to install, click Next to continue with the installation.

Step 10: Specify Installation Options

You can specify optional installation options, depending on which platform you are installing.


On Windows®, the Installation Options dialog box offers you the option to put shortcuts for starting MATLAB in the Start menu and on the desktop.

After selecting installation options, click Next to proceed with the installation.


On Linux systems, you can specify whether you want to create symbolic links to the matlab and mex scripts. Specify a folder to which you have write access and that is common to all your user's paths, such as /usr/local/bin .

After selecting installation options, click Next to proceed with the installation.

Step 11: Confirm Your Choices

Before it begins installing the software on your hard disk, the installer displays a summary of your installation choices. To change a setting, click Back. To proceed with the installation, click Install.


Depending on the method of installation that you use, the confirmation information can vary from the example shown here.

Read Product Configuration Notes

Depending upon which products you install, the installer might display a dialog box containing additional information:

  • Product configuration information — Certain products require additional configuration. If you installed a product requiring additional configuration, the installer lists the configuration commands in this dialog box.

  • Supported compilers and SDKs — Some products require a supported compiler or software development kit. If you installed a product with this requirement, the installer displays a link to where you can learn more.

Click Next to proceed with the installation.

Step 12: Complete the Installation

When the installation successfully completes, you can choose to activate the software you just installed. You cannot use the software you installed until you activate it. Activating immediately after installation is the quickest way to start using MATLAB. Click Next to proceed with activation.

If you choose to exit the installer without activating the software, clear the Activate MATLAB option and click Finish (the button label changes). Use the activation application to activate the software at a later time. If you have not activated the software, the activation application starts automatically when you start MATLAB.

Step 13: Activate Installation

Your MATLAB installation automatically continues to software activation. See Activate an Installation Online (Installation, Licensing, and Activation) for a step-by-step description of the process.


Administrators: You may want to install the software yourself but wait to have the end user activate it. If that's the case, you are done here. When the end user is ready to activate the software, send them to the linked instructions.

Related Topics