FUNCTION REFERENCE

drawnow

Update figures and process queued UI callbacks.

Update figures and process queued UI callbacks.

Syntax

drawnow

Syntax

drawnow limitrate

Syntax

drawnow nocallbacks

Syntax

drawnow update

Syntax

drawnow expose

In 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]; drawnow

Differences 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.