该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


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.
x = [1 2 3];
y = [4 5 6];
MATLAB Execute( {x, y}, {z}, "z = x * y;" );
Show( z );
Suppose that a matrix named qbx and a structure named df are present in your MATLAB connection.
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.
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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
ml = MATLAB Send( dt, Row States( 1 ) );
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.
S = "Report Title";
M = [1 2 3, 4 5 6, 7 8 9];
" );
mc = MATLAB Submit("/[
]/" );