Skip to content

tempname

builtin · libnexusinterp/corefcn/file-io-proprietary.cc

: fname = tempname ()
: fname = tempname (dir)
: fname = tempname (dir, prefix)

Return a unique file name that does not currently exist.

Without prefix the name is MATLAB’s: dir (default: the system temporary directory) followed by ‘tp’ and a random identifier, and the directory is not looked at. With prefix (a Nexus extension) the name starts with prefix followed by six random characters. The file is not created.