from
Simple DOCK/UNDOCK commands
by Robert Bemis
Convenience functions to dock & undock figures.
|
| dock(hFig)
|
function dock(hFig)
%DOCK specified figure(s).
% DOCK(H) sets the WindowsStyle property of the specified figure(s) to
% Docked. This syntax is simpler than set(h,'WindowStyle','Docked').
%
% DOCK without any inputs simply docks the current figure window.
%
% See also UNDOCK.
% Copyright 2005-2010 The MathWorks, Inc.
%defensive programming
error(nargchk(0,1,nargin))
error(nargoutchk(0,0,nargout))
%default
if nargin<1
hFig = gcf;
end
set(hFig,'WindowStyle','Docked')
|
|
Contact us at files@mathworks.com