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 1984-2000 The Mathworks, Inc. 
%   $Revision: 1.8 $  $Date: 2000/06/02 04:41:54 $

% -------- 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');
