Skip to Main Content Skip to Search
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Inside the MATLAB Desktop

June 9th, 2008

Tools on the Side

About a year ago Ken Orr discussed the docked “maximize” feature that was introduced in R2007a (Focusing on your work). He explained how you can use this feature to temporarily expand a particular tool (sub-window) to fill the entire MATLAB window. Also introduced in R2007a was a docked “minimize” feature. Docked minimize and maximize have similar intent, allowing you to optimize your use of screen real-estate.

Here’s a scenario where I find docked minimize useful. I’m tweaking an M-File that generates a figure. I want to see the M-File and figure side-by-side so I dock both and arrange my MATLAB desktop as shown:

Cluttered MATLAB

This facilitates my workflow reasonably well but it’s a bit cluttered and I’d really like my Editor to be wide enough to display the longer lines of M-Code. I could close the Current Directory, Workspace and Command History tools to recoup some real-estate. However, while they may not be central to the task at hand I do find occasional use for these. Instead of closing these tools I can minimize them by clicking on the small left-pointing arrows on their title bars.

Minimize Button

As I minimize each tool it is hidden and a corresponding button appears along the left border of the MATLAB window. I’ll refer to the row of buttons along the border as a “sidebar”. The documentation doesn’t use this term but doing so here is consistent with the title of “Desktop Bar Tender” to which I laid claim in my last post. With the Current Directory, Workspace and Command History all minimized to the left sidebar, my MATLAB desktop looks like this:

Improved Layout

When I want to access one of the minimized tools I either hover over its button to reveal it without giving it focus or click its button to both reveal it and give it focus. For example if I click the Command History button, the Command History appears overlapping the left portion of the Editor like this:

History Revealed

After I’ve gotten what I want from the Command History I hide it by clicking its button again or clicking on some other tool such as the Editor. If I find myself using the Command History so frequently that I want to return it to my layout I can either double click its sidebar button or click the “restore” icon on its title bar.

Restore Button

If you’ve found this feature useful in your work or if you’ve identified shortcomings that make it less useful than it could be, I’d love to hear from you.

One Response to “Tools on the Side”

  1. Julio replied on :

    Peter,

    It’s awesome that you publish this type of information. Many people I know don’t really know about improving their desktop performance in MATLAB, and I’ve seen MAJOR efficiency improvement by using the minimize icon. I own a laptop with only 1024×768 of resolution, so in order to avoid everything being so cluttered I use that a lot. It gives, at least, three times of virtual space to my small desktop. Keep up the good work!

Leave a Reply


Inside the MATLAB Desktop is written by the MATLAB Interface teams.

Team picture
  • Ramon Bello: Hello, I have a problem with Matlab not graphing a function. I have certain constants defined except I...
  • Etienne: Hello, Is it possible to change the background color of a particular cell?
  • Ken: No problem Mark…glad to help. Enjoy your font!
  • Mark Andrews: Ken, thanks for replying @3 and giving such clear instructions on how to get this to work.
  • Steve Eddins: Hi Ken, Every year or so I try to find a programming font that would really make me happy. A couple of...
  • Ken: @Jiro: Andale Mono looks nice! I especially like the rendering of the letter “g”.
  • Ken: Hi Mark, The issue your referring to (see the bug report here) was fixed in version 7.5 (R2007b). The problem...
  • Jiro: Ken, That’s a nice font. I use “Andale Mono” which has a similar look. I also like the clear...
  • Queffurust: This is my “cleanup” ; shortcut clc % clear Command Window close all hidden % deletes all...
  • Mark Andrews: Ken, should this work with version 7.0 (R14) on Windows? My favorite font is Consolas, but MATLAB seems...

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

Related Topics