User input folder name?

3 views (last 30 days)
Michael
Michael on 1 Jul 2014
Commented: Michael on 1 Jul 2014
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.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 1 Jul 2014
foldername = inputdlg('Please enter output folder name:');
mkdir(foldername{1})

More Answers (0)

Community Treasure Hunt

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

Start Hunting!