getUniqueFileName(f​ile, varargin)

GETUNIQUEFILENAME returns a unique file name if the supplied file name has been taken.

Download
Download

You are now following this Submission

Cite As

Zhengyi (2026). getUniqueFileName(file, varargin) (https://in.mathworks.com/matlabcentral/fileexchange/67274-getuniquefilename-file-varargin), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.1

Fixed a problem where supplying a file name with path included results in an infinite loop.

Download
1.1.0

Now works for files with no extension.
Fixed a mistake in description.

Download
1.0.0

Download