Ken & Mike on 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

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.