how to create new folder ?

9 次查看(过去 30 天)
afiqa  yazid
afiqa yazid 2018-4-13
编辑: Stephen23 2020-1-1
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' .

回答(1 个)

Stephen23
Stephen23 2018-4-13
编辑:Stephen23 2020-1-1
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 exactly this code:
name = nextname('image','1','');
mkdir(name)
  1 个评论
Stephen23
Stephen23 2018-4-13
编辑:Stephen23 2018-4-13
@afiqa yazid: my answer shows you exactly how you need to use it. I recommend that you read the Examples tab on the FEX page too.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by