Want to know what's in a MAT file without loading it? matwho is for you. Simple, effective, well-implemented, and useful. And fast!
Benjamin's file, which sprang from an interesting discussion on CSSM, provides an easy-to-use wrapper around MATLAB's MatGetDir MEX function. His function is often faster than querying the file with who, but quite honestly, the value of matwho arises from the relative ease of the calling syntax: I have an easier time remembering 'matwho('test.mat')' instead of 'whos('-file','test.mat').
Calling who is pretty darned fast, too...I don't think I would have gone to the trouble that Benjamin did. But I'm glad he did. ;)
Not earth-shattering, but useful nonetheless. And I enjoyed reading through some of the discussion in CSSM on the topic.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。