tempdir
- :
dir =tempdir()¶ Return the name of the system temporary directory, ending with a path separator.
On Windows this prefers the
TEMPenvironment variable (MATLAB R2026a), thenTMP, then a profile or system fallback. On other platforms the installed builtin is used (TMPDIR/ /tmp).