MATLAB Answers

Matt J
1

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?

R2012a

  0 Comments

Products

No products are associated with this question.

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?

  4 Comments

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

whos('-file','durer.mat')

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.


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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!