The following example sends the JMP variables x and y to MATLAB, executes the MATLAB statement z = x * y, and then gets the MATLAB variable z and returns it to JMP.
MATLAB Init();
x = [1 2 3];
y = [4 5 6];
MATLAB Execute( {x, y}, {z}, "z = x * y;" );
Show( z );
qbx = MATLAB Get( qbx );
df = MATLAB Get( df );
JMP and MATLAB Equivalent Data Types for MATLAB Get( ) shows what JMP data types can be exchanged with MATLAB using the MATLAB Get( ) function. Getting lists from MATLAB recursively examines each element of the list and sends each base MATLAB data type. Nested lists are supported.
Positional. The format the MATLAB graph display window contents are to be converted to. Valid formats are "png", "bmp", "jpeg", "jpg", "tiff", and "tif".
Echo(Boolean) Sends MATLAB source lines to the JMP log. This option is global. The default value is true.
X = [1 2 3];
ml = MATLAB Send( X );
JMP and MATLAB Equivalent Data Types for MATLAB Send( ) shows what JMP data types can be exchanged with MATLAB using the MATLAB Send( ) function. Sending lists to MATLAB recursively examines each element of the list and sends each base JMP data type. Nested lists are supported.
MATLAB Init( );
X = 1;
MATLAB Send( X );
S = "Report Title";
MATLAB Send( S );
" );
MATLAB Init();
]/" );