www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@calibrationdata/@progressmanager/update.m

    function update(obj, value)
%UPDATE  Update the progress manager.
%
%  UPDATE(OBJ,VALUE) updates the value of the progress manager to VALUE.
%  VALUE should be between 0 and 1.

%  Copyright 2004-2005 The MathWorks, Inc.


% Update progress with new value
obj.Progress = value;

% Decide whether it is worth displaying the new progress
if obj.Progress - obj.Display >= obj.Resolution
    obj.pUpdateDisplay
end