How can I send with the MatlabControl JMI Wrapper a 2D matrix or 1D matrix (vector) from Java to a Matlab script? For example, the Matlab script takes as argument a 2D matrix A or a 1D matrix (vector) a.
Second, Does Java wait until Matlab has finished the execution? If no, how can this be achieved?