Declaration: GetML4FileInfo (IFile: TIlabFStream; var NrOfMatrices: integer; var NCols, NRows: TIntArray; var MatNames: TStrArray): integer;
The function GetML4FileInfo retrieves the sizes and the names of all matrices of the MatLab 4 formatted file stream IFile. The variable parameter NrOfMatrices returns the number of contained matrices. The array variables NCols and NRows return the number of columns and rows, the array parameter MatNames returns the names of the contained matrices.

Please note that the arrays NCols, NRows and MatNames are automatically resized to NrOfMatrices (valid indices 0 to NrOfMatrices-1).

The function returns the following error codes:

 0 ... everything OK
-1 ... there is no valid MatLab 4 info header

Last Update: 2018-Mai-02