Declaration: CountML4Matrices (IFile: TIlabFStream; var Offsets: TIntArray): integer;
The function CountML4Matrices counts the number of matrices of the file stream IFile and returns the number of matrices as a function result. The offsets of the matrices are returned in the variable array Offsets. The offsets are required to read individual matrices (using LoadML4Matrix).

The function returns the following error codes:

 0 ... everything OK
-1 ... the file does not contain valid MatLab 4 data

Last Update: 2018-Apr-16