MATLAB Answers

Matt J

Should it take a long time to WHOS the contents of a .mat file

Asked by Matt J
on 19 Jul 2013

For certain particular .mat files that I have, it takes "whos -file" a really long time (~10 sec) to give me the summary of the contents of the file. Also, when I highlight the file in the Current Folder window, the pane which is supposed to show the file contents appears empty, even though "whos -file" tells me otherwise. It remains that way no matter how long I wait.

Admittedly, these .mat files contain large data (~1 GB), but should that matter? Isn't the WHOS summary info contained in headers, and therefore shouldn't extracting this info be easy, quick, and reliable?



Log in to comment.

1 Answer

Answer by Sean de Wolski
on 22 Jul 2013

Do you have network directories anywhere on your path? If so, remove them and try again. Does this clear it up?


Show 1 older comment

It searches everywhere on the path. For example, even the doc example:


You mean it doesn't even stop searching the path when it finds the file?

In any case, it can't be due to overhead from searching the path, because I observe the problem only for files of a sufficiently large size.

Well it does appear to only find one.

Log in to comment.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!