how to create new folder ?
9 ビュー (過去 30 日間)
古いコメントを表示
How to create a new folder ? if the folder already exist , the program will add another new folder. for example, i want to create a folder named 'Image' , if the 'Image' folder already exist, program will create another folder name 'Image1' .
0 件のコメント
回答 (1 件)
Stephen23
2018 年 4 月 13 日
編集済み: Stephen23
2024 年 11 月 4 日
You could download my FEX submission nextname:
It will return the next unused file/folder name, which you can then simply use with mkdir. Each time you need a new directory simply call it with e.g.:
subd = 'absolute or relative path to where the folders are';
name = nextname(subd,'Image<1>',true);
mkdir(name)
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Downloads についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!