Reads next variable in a Matlab V5 binary MAT-file. (original) (raw)
Scilab 5.3.3
- Scilab help
- Matlab binary files I/O
- loadmatfile
- matfile_close
- matfile_listvar
- matfile_open
- matfile_varreadnext
- matfile_varwrite
- savematfile
Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function
Scilab help >> Matlab binary files I/O > matfile_varreadnext
matfile_varreadnext
Reads next variable in a Matlab V5 binary MAT-file.
Calling Sequence
[name[, value[, vartype]]] = matfile_varreadnext(fd)
Arguments
fd
Real: file descriptor (returned by matfile_open).
name
String: name of the variable read or "" if reading failed.
value
Any Scilab type: value of the variable read or an empty matrix if reading failed.
vartype
Real: type of the variable if reading succeeds or:
- 0: if the variable type is unknown.
- -1: if end of file has been reached.
Description
Reads next variable in a Matlab binary MAT-file opened by matfile_open.
See Also
- matfile_open — Opens a Matlab V5 binary MAT-file.
- matfile_close — Closes a Matlab V5 binary MAT-file.
- matfile_varwrite — Write a variable in a Matlab V5 binary MAT-file.
- matfile_listvar — Lists variables of a Matlab V5 binary MAT-file.