This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Why Do Figures Display Simultaneously?

If you create multiple figures in a script in R2014a and earlier, then MATLAB® attempts to wait for each figure to display on the screen before continuing to execute the script. Starting in R2014b, MATLAB does not wait for a figure to display before continuing to execute the script. Thus, the script might run to completion before the figures are displayed. This change is most noticeable for scripts that create multiple figures and perform long computations.

To force figures to display as they are created, use drawnow.

figure
plot(1:10);
drawnow

See Also