CopyFrom2DMat

Declaration: TMatlab5WorkSpace.CopyFrom2DMat (MatIdx: integer; SrcMat: TDouble2DArray): integer;
The method CopyFrom2DMat copies the two-dimensional matrix SrcMat into the MatLab 5 workspace overwriting the matrix referenced by MatIdx (valid range: 1...NrOf2DMats).

The function returns one of the following error codes:

 0 ... everything OK, DestMat is valid
-1 ... SrcMat has zero size
-2 ... MatIDx is out of bounds