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

    function pUpdateDisplay(obj)
%PUPDATEDISPLAY  Private method.

%  PUPDATEDISPLAY updates the display of the progress manager.

%  Copyright 2004-2005 The MathWorks, Inc.


% Resolve progress to display
progress = obj.Progress;
resolution = obj.Resolution;
display = round(progress/resolution)*resolution;
obj.Display = display;

% Display
fprintf('%3d percent complete...\n', round(obj.Display*100))