Mike on the MATLAB Desktop

May 4th, 2007

Display information from M, MDL and MAT files without opening them

If your memory is like mine, it is handy to quickly review content description to remember functionality of files and directories. From the list of files in the Current Directory Browser, you can see individual file and directory contents displayed in the browser’s lower pane. When a file is selected, the display pane shows M-file help for M-files. Simulink Models show the complete model description. This is convenient when you want to view model information without having to start Simulink. MAT-files show the name, size, bytes and class all without having to load the MAT-file. Directories display the contents.m file.

filebrowser.jpg

In order to display this informative file browser description pane, select the File>Preferences>Current Directory menu. Under the Browser display options, select the check box Show M, MDL and MAT file contents.

preferences_small.jpg

Let me know if this works better than Ginkgo Biloba.

3 Responses to “Display information from M, MDL and MAT files without opening them”

  1. Amy Farris replied on :

    Love this! Thanks!

  2. Xianyao Chen replied on :

    Excellent, but is there any commands to show the contents of the mat file without loading them into worksapce? Thanks in advance.

  3. Mike replied on :

    Xianyao,

    Yes. You can use the who command.

    For instance if your file is mydata.mat:

    >>who -file mydata
    

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks
Mike works on the MATLAB Desktop team.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.