Display plots while processing loop

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.

 Accepted Answer

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

More Answers (0)

Categories

Asked:

on 11 May 2012

Commented:

on 22 Dec 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!