I am running Matlab on a Mac 10.6.8. I am running a code that uses ?aviwrite? and ?filloval? to generate a video. Very large files are being stored within the mac?s administrative folder ?Private? (normally hidden from view because files within this folder are not supposed to be changed) when I run this code. I am not specifying the pathway to this ?private? folder so do not know why files are being stored there. These large files are given names such as ?tp63709af9_4b33_4060_b04f_ec4083b6c5dd.tmp.? These large files are automatically deleted if the code completes the video but these large files are not deleted if I force the code to end early (before it has completed making the video). How can I stop Matlab from stores these files here?