TEMPDIR2 Return temporary directory. DIR = TEMPDIR2 returns a temporary directory. If the username is contained in the directory returned by function TEMPDIR, the directory/MATLAB is returned. Otherwise, the directory / /MATLAB is returned. Markus Buehren Last modified 13.11.2007 See also USERTEMPDIR, GETUSERNAME.