User input folder name?

조회 수: 3 (최근 30일)
Michael
Michael 2014년 7월 1일
댓글: Michael 2014년 7월 1일
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일
foldername = inputdlg('Please enter output folder name:');
mkdir(foldername{1})
  댓글 수: 1
Michael
Michael 2014년 7월 1일
Got it to work. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by