Function Reference
— Built-in Function: [fid, msg] = tmpfile ()

Return the file ID corresponding to a new temporary file with a unique name. The file is opened in binary read/write ("w+b") mode. The file will be deleted automatically when it is closed or when Octave exits.

If successful, fid is a valid file ID and msg is an empty string. Otherwise, fid is -1 and msg contains a system-dependent error message.

See also: tmpnam mkstemp P_tmpdir