tempname
Unique name for temporary file
Description
tmpName = tempname
returns a character vector containing a unique path
for a temporary file in your system’s temporary folder.
tmpName = tempname(
returns a
unique path for a temporary file in the specified folder.folderName
)
Examples
Input Arguments
Limitations
In most cases,
tempname
generates a universally unique identifier (UUID). However, if you run MATLAB® without JVM™ software, thentempname
generates a random character vector using the CPU counter and time, which is not guaranteed to be unique. For more information about the MATLAB startup option that does not load JVM software, see Commonly Used Startup Options.
Version History
Introduced before R2006a