home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / IOFUN.DI$ / TEMPNAME.M < prev   
Encoding:
Text File  |  1993-03-07  |  269 b   |  10 lines

  1. function tmp_name = tempname()
  2. %TEMPNAME Returns a unique name suitable for use as a temporary file
  3.  
  4. %    Marc Ullman  2-8-93
  5. %    Copyright (C) 1984-93 by The MathWorks, Inc.
  6.  
  7. t = fix(clock);
  8.  
  9. tmp_name = [tempdir sprintf('tp%02.0f%02.0f%02.0f', t(4), t(5), t(6))];
  10.