MATLAB Runtime Setup

As part of developing and testing your model, you can write MATLAB® applications for:

  • Parameter extreme value testing

  • Regression testing

  • Putting the model into a consistent state for testing another part of the system

To run an application on a Windows® computer that does not have MATLAB installed, use MATLAB Compiler™ to deploy the application as a standalone executable.

To deploy a MATLAB application, first set up MATLAB Runtime:

  1. Open MATLAB.

  2. To find the MCRInstaller program, type:


    The Command Window displays output similar to this output: C:\Program Files\MATLAB\R2017b\toolbox\compiler\deploy... \win64\MCRInstaller.exe

  3. Copy and paste the full path to the MCRInstaller program into the Windows Run text box.

  4. Press Enter, and then follow the prompts.

    Place the MATLAB Runtime in the default location, for example:

    C:\Program Files\MATLAB\MATLAB Runtime

    From the installation dialog box, copy and paste the location where the installer places the MATLAB Runtime binary files:

    C:\Program Files\MATLAB\MATLAB Runtime\v93
  5. Close MATLAB and open a Windows command prompt window.

  6. Type the following command:

    set PATH=C:\Program Files\MATLAB\MATLAB Runtime\v93\bin\win64;%PATH%

    This command sets the MATLAB Runtime path only for the command prompt window within which you typed it. To make this environment variable setting visible throughout the operating system, see the Windows documentation.

Related Topics