Info

This question is closed. Reopen it to edit or answer.

Is it possible to retrieve plots at intermediate timesteps without running code again?

2 views (last 30 days)
Is it possible to create an animated plot from a MATLAB code that's already run? My code takes a long time (to the tune of a few days) to run, and at each time step, a plot is generated but was not saved using, for instance, getframe. Is it possible to retrieve the plots at intermediate time steps without running the whole code again? given below is the pertinent portion of the code.
for tt=1:43000
%.......
%.......
if(mod(tt,tplot==0))
figure(1)
imagesc(rho)
colorbar
drawnow
figure(2)
imagesc(tem)
colorbar
drawnow
end
end

Answers (0)

Community Treasure Hunt

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

Start Hunting!