Generates free pathname for a file

バージョン 1.1.0.0 (2.05 KB) 作成者: Alexandre
Generates pathname to a non-existing file so you can save data without overwriting an existing file.
ダウンロード: 158
更新 2012/11/5

ライセンスの表示

Usage : filename = genfilename(fname)
This simple code will generate a 'free' pathname based on your suggestion (fname), to make sure you can save your data to a file without overwriting to an existing one.

Simple options allow you to use a certain number of digits or start numbering at a defined number.

引用

Alexandre (2024). Generates free pathname for a file (https://www.mathworks.com/matlabcentral/fileexchange/38442-generates-free-pathname-for-a-file), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2011a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersStructures についてさらに検索
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

Faster for large number of existing files.

1.0.0.0