MATLAB: Figure reuse and PUBLISH

MATLABpublish

I definitely need to reuse the figure in my actual application due to memory limitations.
Thank you.
% script publish_me.m
for ix=1:10 figure(1); plot(rand(100,1),cumsum(rand(100,1))); drawnow; end

Best Answer

If the question relates to publishing, you might want to use snapnow.
Arnaud