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

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

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

Matt J

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

Sean de Wolski on 22 Jul 2013

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

whos('-file','durer.mat')
Matt J on 22 Jul 2013

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.

Sean de Wolski on 22 Jul 2013

Well it does appear to only find one.

Sean de Wolski

Contact us