MATLAB: Display plots while processing loop

solar system simulation plotting

Is is possible to display plots in a figure while doing all the processing. Displaying is time critical in order to show simulation of solar system.

Best Answer

At the end of each loop, use drawnow, like this:
for ...
% do processing
drawnow;
end