Publication date: 04/12/2021

Install MATLAB

MATLAB must be installed on the same computer as JMP. For the supported version of MATLAB, see the JMP website:


JMP delays loading MATLAB until a JSL-based script requires access to it. When you run a JSL script that calls MATLAB, JMP locates the software based on the operating system’s PATH environment variable (for example, C:\Program Files\MATLAB\R2012a\).

Test Your Install

To verify that your computer is able to run JSL-based scripts using MATLAB:

1. Run the following JSL script:

MATLAB Init();
MATLAB Submit( "m = magic(3)" );
magicMat = MATLAB Get( m );
Show( magicMat );
MATLAB Term();

The MATLAB function M = magic(3) returns a 3-by-3 matrix using integers in the range of 1 to 32 with equal row and column sums. This matrix is called a magic square.

2. Select View > Log.

You should see the following response in the log window:

m =
     8     1     6
     3     5     7
     4     9     2
magicMat =
[	8 1 6,
	3 5 7,
	4 9 2];

If you see the following message in the log window:

An installation of MATLAB cannot be found on this system.

1. Add a new environment variable with the name of MATLABROOT and a value of C:\Program Files\MATLAB\R2012a\ or C:\Program Files (x86)\MATLAB\R2012a\.

Note: The path entered depends on the MATLAB installation path.

2. Verify that the MATLAB path is included in the PATH variable.

3. Run the script again to ensure JMP can access MATLAB.

Want more information? Have questions? Get answers in the JMP User Community (