how to create new folder ?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Stephen23
am 13 Apr. 2018
Bearbeitet: Stephen23
am 4 Nov. 2024
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 Kommentar
Siehe auch
Kategorien
Mehr zu Downloads finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!