CopyTo4DMat

Declaration: TMatlab5WorkSpace.CopyTo4DMat (MatIdx: integer; var DestMat: TDouble4DArray): integer;
The method CopyTo4DMat copies a four-dimensional matrix of the MatLab 5 workspace to the matrix DestMat. The parameter MatIdx specifies the index of the array to be copied (valid range: 1...NrOf4DMats). The size of the destination matrix is automatically adjusted to the size of the source matrix.

The function returns one of the following error codes:

 0 ... everything OK, DestMat is valid
-1 ... MatIDx is out of bounds