How do you redirect MATLAB intermediate files to a different disk drive?

8 views (last 30 days)
I have a system with C: and D: (Windows 7) made up of two hard drives and K: which is a SSDD and is much faster in read/write access time.
When I run MATLAB, it uses the C: drive for doing internal scratch storage when working with large arrays. How do I tell MATLAB to use the K: drive instead for any intermediate storage during a run. I have moved all the .m files I am using to K: but the MATLAB is still using the C: for scratch storage (which is much slower).

Answers (1)

Walter Roberson
Walter Roberson on 12 Nov 2013
MATLAB itself would not write internal scratch storage. You might, however, be exceeding your physical RAM and overflowing into the virtual memory you have configured at the operating-system level.

Community Treasure Hunt

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

Start Hunting!