Ken & 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).


Ken & Mike work on the MATLAB Desktop team.
  • DP: Hi i have a problem with ezplot3, i want to plot more than i curve in the same graph but hold on command...
  • Ken: Hi Arsalan, Unfortunately there is no way to get the new Editor API in older versions of MATLAB. -Ken
  • Arsalan: Hi, I am very excited about the MATLAB API for editor because right now i am working on a project and i need...
  • Johannes: Since I started using matlab-emacs some days ago I never experienced Emacslink. But I experienced some...
  • Francisco J. Beron-Vera: Hi all, I have recently learned about ViEmu (http://www.vimemu.c om) which, for Vi/Vim...
  • OysterEngineer: When I first learned of the Publish feature in MatLab, I thought it might be useful to help to...
  • Ken: Hi Herve, I’m not quite sure what you mean by “stand-alone&# 8221; mode? -Ken
  • Herve: I wonder when the publish fonction will be supported in standalone mode.
  • Mike: Ravi, What you described should work as far I understand it. Please follow up with technical support. With a...
  • Mike: @Daniel, Thanks for that note.

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