Why does .mat file previewer take so long?
Show older comments
I often wish to preview the contents of a .mat file in the Current Folder browser. Some of my .mat files are quite large, which seems to cause a long delay for the previewer to populate. This for example, is what one of my previews should look like,

but it takes about a full minute before I see anything but this,

Why does it take so long for Matlab to inventory a .mat file on disk. Isn't all this information kept in a header?
2 Comments
Just how large and/or complicated are the meta and P objects stored inside the MAT-file?
Do they overload certain methods like size? To check, load them into memory then ask which.
t = array2table(magic(4)); % sample object
which size(t) % show the location of the overloaded method
Matt J
on 8 Jan 2025
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!