drawnow

Update figures and process callbacks

Syntax

  • drawnow()

Description

drawnow flushes the event queue and updates the figure window.

Example

x = -pi:pi/20:pi;
plot(x, cos(x))
drawnow
title('Title Here ...')
grid on

See also

refresh.

History

Author

Allan CORNET

Last updated