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 1986-2000 The MathWorks, Inc.
%   $Revision: 1.4 $  $Date: 2000/06/15 11:46:29 $

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