Declaration: GetML4MatrixInfo (IFile: TIlabFStream; Offset: integer; var NCols, NRows: integer; var MatName: string): integer;
The function GetML4MatrixInfo retrieves the size and the name of a particular matrix specified by the parameter Offset from the MatLab 4 formatted file stream IFile. The variables NCols and NRows return the number of columns and rows, the parameter MName returns the name of the matrix.

The function returns the following error codes:

 0 ... everything OK
-1 ... there is no valid info header at the given offset

Last Update: 2018-Apr-16