Code covered by the BSD License  

Highlights from
Dockfig/Undockfig

5.0

5.0 | 3 ratings Rate this file 4 Downloads (last 30 days) File Size: 1.99 KB File ID: #18194

Dockfig/Undockfig

by Brett Shoelson

 

02 Jan 2008 (Updated 21 Jun 2010)

Programmatically dock or undock one or all open figures.

| Watch this File

File Information
Description

dockfig(FIG)
  Docks figure with handle FIG, and brings it to the front.
 
dockfig('all')
  Docks all open figures

undockfig(FIG)
  Undocks figure with handle FIG, and brings it to the front.
 
undockfig('all')
  Undocks all open figures

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
03 Jan 2008 John D'Errico

Pretty good. Good help as you would expect. It even works on my Mac.

I was only surprised at one thing - there is no default for these functions when called with no arguments. They generate an error. It would make far more sense to me if either the current figure is docked/undocked or all of them are. Either of these options would be fine.

04 Jan 2008 Brett Shoelson

Thanks for the input, John. You're absolutely right; lack of default behavior was an oversight on my part. I've corrected and reposted the functions. Thanks.

04 Jan 2008 John D'Errico

Well done.

22 Jan 2008 Mikhail Poda

It's a pity that docking does not work with compiled Matlab (at least in R2006a) ...

26 Aug 2010 Anna  
Please login to add a comment or rating.
Updates
04 Jan 2008

Per John's suggestion, providing default behavior when no input is provided. (Operates on current figure.)

04 May 2010

added copyright

21 Jun 2010

added Mathworks copyright to license and M files

Tag Activity for this File
Tag Applied By Date/Time
dock undock figures Brett Shoelson 22 Oct 2008 09:41:41

Contact us at files@mathworks.com