Why does PAUSE(0) fail to update the figure in MATLAB 7.0.1 (R14SP1)?

2 views (last 30 days)
In MATLAB 6.5 (R13), I use the the PAUSE function to flush the event queue and update the figure, as follows:
for i=1:1000
plot(1:i);
pause(0);
end
In MATLAB 7.0.1 (R14SP1), the PAUSE function no longer updates the figure.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
It is not an intended behavior that the PAUSE function should update the figure. As a workaround, use the DRAWNOW function, as shown in the following code:
for i=1:1000
plot(1:i);
drawnow;
end

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!