Copies the matrix InMat into a layer of the three dimensional open array TargetMat. The destination layer is specified by the property Layer. The function returns the following error codes:
0 ... everything is OK
-1 ... InMat and TargetMat do not match
-2 ... invalid Layer index