How to create a folder under program generated folder name?
4 次查看(过去 30 天)
显示 更早的评论
One module of my project auto-generates the folder name but I am not able to create folder under that auto generated name. mkdir is not working.... please help.
1 个评论
Evan
2013-8-9
What do you mean by "mkdir is not working"? Are you getting an error? Is the name incorrect?
采纳的回答
per isakson
2013-8-9
编辑:per isakson
2013-8-9
This works for me (R2013a)
folder_name = 'name_of_subfolder'; % this subfolder does not exist
parent_folder = 'h:\m\cssm'; % this folder exists
mkdir( parent_folder, folder_name )
What have you tried and what error message did you get?
.
Or, if neither folder_name nor parent_folder exists
folder_name = 'name_of_subfolder'; % this subfolder does not exist
parent_folder = 'h:\m\cssmXX'; % this folder does not exist
mkdir( fullfile( parent_folder, folder_name ) )
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!