See the MATLAB Integration Functions section in the JSL Syntax Reference book for details on using MATLAB functions in JMP.
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.
Select View > Log.
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\.
Verify that the MATLAB path is included in the PATH variable.