I'm trying to set the temporary directory in MATLAB using setenv('TEMP','C:\Temp')
but it seems to have no effect:
Code
t = tempdir
setenv('TEMP','C:\Temp');
t = tempdir
Output
t = C:\Users\KAR~1\AppData\Local\Temp\
t = C:\Users\KAR~1\AppData\Local\Temp\
I can't seem to find the reason why I am unable to set the Temp directory this way.