FUNCTION REFERENCE
drawnow
Update figures and process queued UI callbacks.
Update figures and process queued UI callbacks.
Syntax
drawnowSyntax
drawnow limitrateSyntax
drawnow nocallbacksSyntax
drawnow updateSyntax
drawnow exposeIn the desktop app a running script refreshes its figures and UI windows when drawnow runs, and drains queued UI callbacks (such as button clicks or uiprogressdlg Cancel). drawnow nocallbacks, drawnow update, and drawnow expose refresh the display without draining callbacks. pause also refreshes figures and drains queued UI callbacks. In -batch mode and SVG export drawnow does nothing.
Example
h = plot(1:3); h.YData = [3 2 1]; drawnowDifferences from MATLAB: limitrate is accepted and behaves like plain drawnow; nocallbacks, update, and expose skip callback draining but do not rate-limit or defer rendering.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.