tbeu / matio

MATLAB MAT File I/O Library
https://matio.sourceforge.io
BSD 2-Clause "Simplified" License
338 stars 97 forks source link

Random access var #135

Closed ceccocats closed 2 years ago

ceccocats commented 4 years ago

Hi, I have a huge mat file that I use as a dataset. Is it composed by a lot of vars that i cant read all at once and i need to access it randomly. Is it somehow possible to read all the Infos with Mat_VarReadNextInfo once, and then when i need to load a var seek the file and read it? A sort of Mat_VarSeek and then Mat_VarReadNext.

There is a key access method using Mat_VarRead but it always reads all the infos from the beginning until it find the desired var and it is quite slow with a lot of vars.

Thanks, Francesco