MATLAB: How to change the location of the temp folder where the DMR files are created

simulink

How can I change the location of the temp folder where my DMR files are created?

Best Answer

You can use the following commands to modify the location of the temp folder:
% Clear any existing persistent temporary directory value
>> clear tempdir;
% Specify a new temporary directory value
>> setenv('TMP','newpath');