Why does PAUSE(0) fail to update the figure in MATLAB 7.0.1 (R14SP1)?
1 view (last 30 days)
Show older comments
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
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
0 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!