www.gusucode.com > mbclayouts 工具箱 matlab 源码程序 > mbclayouts/@xregflowlayout/private/gui_pack_bottom.m

    function  handles=gui_pack_bottom(handles,space)
%  Synopsis
%     function  gui_pack_bottom(handles,gap)
%
%  Description
%     Packs all objects against the bottom object in order.
%     The first object is considered to be the  bottom  most desired
%     object and then so on....
%
%     Handles is an array of positions
%
%  Example
%
%
%  See Also

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.



if isempty(space)
   space = 0;
end

pstart=handles(1,2);
handles(2:end,2)=pstart+[cumsum(handles(1:end-1,4)+space)];