Docks figure with handle FIG, and brings it to the front.
Docks all open figures
Undocks figure with handle FIG, and brings it to the front.
Undocks all open figures
Nice and simple and it works! "undockfig.m" Solved a headache for me, as I was trying to set the position of a figure programmatically using the property 'outerposition', which doesn't work when the figure is docked.
It's a pity that docking does not work with compiled Matlab (at least in R2006a) ...
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.
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.
added Mathworks copyright to license and M files
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.