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