Next Available Filename
Nota del editor: This file was selected as MATLAB Central Pick of the Week
- The basic folder/filename, without any file extension.
- The suffix, which must contain one integer. Some examples of suffixes are: '0', '_1', '(5)', '-0001-backup', '_temp1', etc. This suffix will be appended to the folder/filename, before the file extension, after incrementing the integer as required to define an unused filename.
- The file extension, if required. For folders (or files without extensions) use '' or "".
Citar como
Stephen23 (2024). Next Available Filename (https://www.mathworks.com/matlabcentral/fileexchange/64108-next-available-filename), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: Natural-Order Filename Sort, auto_rename, Avoid file overwrite
Inspiración para: Making a new .txt or .xlsx file automatically, Customizable Natural-Order Sort, Natural-Order Filename Sort
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
4.0.3 | * Input checking and error message improvements.
|
||
4.0.2 | * Documentation improvements. |
||
4.0.1 | * Documentation improvements. |
||
4.0.0 | * Add syntax 1: filename with integer in angle brackets.
|
||
3.1.0 | * Return name with same class as first input. |
||
3.0.2 | * 4th input accepts numeric or logical.
|
||
3.0.1 | Simplify string handling. |
||
3.0.0 | * Accepts string scalar or char vector inputs.
|
||
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.
|
||
1.2.1 | * Improve efficiency. |
||
1.2.0 | * Handle single matched subfolder. |
||
1.1.0.0 | * Add check for no matching files. |
||
1.0.0.0 | * Update HTML docs. |