Next Available Filename

Return the next unused filename, incrementing an integer as required.

下载
下载

您现在正在关注此提交

编者注: This file was selected as MATLAB Central Pick of the Week

引用格式

Stephen23 (2026). Next Available Filename (https://ww2.mathworks.cn/matlabcentral/fileexchange/64108-next-available-filename), MATLAB Central File Exchange. 检索时间: .

类别

在 Help Center 和 MATLAB Answers 中查找有关 File Operations 的更多信息

一般信息

MATLAB 版本兼容性

  • 与 R2014b 及更高版本兼容

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
4.1.0

* Make WITHPATH=TRUE the default
* Update test cases and functions

下载
4.0.8

* Output FPA is joined, not array
* Add test function and class
* Fix bug when empty BASENAME
* Improve code comments

下载
4.0.7

* Improve INTMAX handling

下载
4.0.6

* Improve documentation.

下载
4.0.5

* Improve documentation.

下载
4.0.4

* Improve documentation
* Correct bug in 3rd output

下载
4.0.3

* Input checking and error message improvements.
* Documentation improvements.

下载
4.0.2

* Documentation improvements.

下载
4.0.1

* Documentation improvements.

下载
4.0.0

* Add syntax 1: filename with integer in angle brackets.
* Documentation improvements.

下载
3.1.0

* Return name with same class as first input.

下载
3.0.2

* 4th input accepts numeric or logical.
* Improve documentation.

下载
3.0.1

Simplify string handling.

下载
3.0.0

* Accepts string scalar or char vector inputs.
* Add error IDs.

下载
2.0.0

* Separate file extension input (allows for no-ext names and folders with periods).

下载
1.3.1

* Simplify documentation examples.

下载
1.3.0

* Optional third input selects to return name only or same path as input name.
* Use UINT64 for simpler integer handling.

下载
1.2.1

* Improve efficiency.

下载
1.2.0

* Handle single matched subfolder.

下载
1.1.0

* Add check for no matching files.

下载
1.0.0

* Update HTML docs.

下载