Skip to content

tempdir

miscellaneous · scripts/miscellaneous/tempdir.m

: dir = tempdir ()

Return the name of the system temporary directory, ending with a path separator.

On Windows this prefers the TEMP environment variable (MATLAB R2026a), then TMP, then a profile or system fallback. On other platforms the installed builtin is used (TMPDIR / /tmp).