function figw=iduilay2(nobut)
%IDUILAY2 Computes window width based on the number of buttons.
% 	figw = figure width
% 	nobut = number of buttons

%	L. Ljung 10-10-94
%	Copyright (c) 1986-95 by the MathWorks, Inc.
%       $Revision: 1.3 $  $Date: 1995/05/10 21:36:59 $

layout
figw = 2*mEdgeToFrame+nobut*mStdButtonWidth+(nobut+1)*mFrameToText;
