DimOf2DMat

Declaration: TMatlab5WorkSpace.DimOf2DMat (MatIdx: integer; Dim: TDims): integer;
The function DimOf2DMat returns the size of the two-dimensional matrix referenced by the parameter MatIdx (valid range: 1...NrOf2DMats) for the axis specified by Dim (allowed values: dimX and dimY).

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
-2 ... the specified Dim is invalid

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