DimOf4DMat

Declaration: TMatlab5WorkSpace.DimOf4DMat (MatIdx: integer; Dim: TDims): integer;
The function DimOf4DMat returns the size of the four-dimensional matrix referenced by the parameter MatIdx (valid range: 1...NrOf4DMats) for the axis specified by Dim (allowed values: dimX, dimY, dimL and dimT).

The function returns the following error codes:

>0 ... the dimension of the matrix along the requested axis
-1 ... the parameter MatIdx is out of range

Hint: If you want to obtain all dimensions at once you may consider the function GetDims4DMat.