The method CopyFrom4DMat copies the four-dimensional matrix SrcMat into the MatLab 5 workspace overwriting the matrix referenced by MatIdx (valid range: 1...NrOf4DMats).
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