MATLAB Function Reference Previous page   Next Page
drawnow

Complete pending drawing events

Syntax

Description

drawnow flushes the event queue and updates the figure window.

Remarks

Other events that cause MATLAB to flush the event queue and draw the figure windows include

Examples

Executing the statements

as an M-file updates the current figure after executing the drawnow function and after executing the final statement.

See Also

waitfor, pause, waitforbuttonpress

Figure Windows for related functions


Previous page  dragrect dsearch Next page

© 1994-2005 The MathWorks, Inc.