Why does MATLAB slow down when printing lots of (.png) figures?
问题 I am printing a large series of figures as .png files. Each figure is a plot of a column from a data matrix, and I take the .png files and string them together into an animation. My problem is that the first few hundred images print quickly, but the amount of time to create each new figure increases rapidly, from ~0.2 sec for the first few hundred .png files to 2 sec or more at around the 800th figure. Memory usage increases during the run of the script, but only by 1MB every few seconds or