User input folder name?
3 次查看(过去 30 天)
显示 更早的评论
I am trying to prompt the user to enter in a name for an output folder name. Something like this, but in a dialog box if possible.
foldername = input('Please enter output folder name:', 's');
mkdir(foldername);
I tried using inputdlg but I am having trouble making it work with mkdir. Any help would be appreciated.
0 个评论
采纳的回答
Azzi Abdelmalek
2014-7-1
foldername = inputdlg('Please enter output folder name:');
mkdir(foldername{1})
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!