function uiresume (hFigDlg)
%UIRESUME Resume execution of blocked M-file.
%   UIRESUME(FIG) resumes the m-file execution that was suspended by a
%   UIWAIT(FIG) command.  UIRESUME is a companion function to UIWAIT.
%
%   See also UIWAIT, WAITFOR.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.6 $  $Date: 1997/11/21 23:49:46 $

% -------- Validate argument
if nargin < 1,
    hFigDlg = gcf;
end
if ~strcmp (get(hFigDlg, 'Type'), 'figure') 
    error ('Input argument must be of type dialog')
end

set (hFigDlg, 'waitstatus', 'inactive');
