www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimstore/getStopState.m

    function stop = getStopState(opt)
%GETSTOPSTATE Get current stop state for optimization 
% 
%   STOP = GETSTOPSTATE(OPTIMSTORE) returns the current stop state for the
%   optimization. The stop state could be set by the 'Stop' button on the
%   'Running Optimization' progress bar or via a call to SETSTOPSTATE
%   within an Optimization script. 
% 
%   See also CGOPTIMSTORE/SETSTOPSTATE

%  Copyright 2005-2006 The MathWorks, Inc. and Ford Global Technologies, Inc.

global CGOPTIMSTOP
if isempty(CGOPTIMSTOP)
    CGOPTIMSTOP = false;
end

% flush the current queue so that the state can be set
drawnow;

stop= CGOPTIMSTOP;