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.

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 1 日

1 投票

foldername = inputdlg('Please enter output folder name:');
mkdir(foldername{1})

1 件のコメント

Michael
Michael 2014 年 7 月 1 日
Got it to work. Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by