From: us on
"Pragya "
> file_name=sprintf('plot%d.png',p);
> saveas(gcf,file_name,'png');
>
> How do I save the toplot array(which would be different for each frame) in a text file to use it for reference later? Also, how to compare pixel values between two frames and set pixel values of one frame equal to some other frame in the loop. For example, I find out the center of mass of one frame and then of another one. If the COM of the second one is above a threshhold, i set it's COM equal to the COM of the previous frame.
> Thanks for your code:)

a hint:
- use the same file-naming approach as for the fig-files but call SAVE, instead...

help save;

us