www.gusucode.com > mbclayouts 工具箱 matlab 源码程序 > mbclayouts/@xregcontainer/resize.m
function resize(obj,new_size) % Synopsis % function size(obj,size) % % % Description % resizes the whole package to the specified size % % Example % h = [uicontrol uicontrol uicontrol]; % p = packObject(h,'pl',0); % resize(p,[10 10]); % % See Also % methods Container % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. p = get(obj,'Position'); p(3:4) = new_size; obj = set(obj,'Position',p);