필터 지우기
필터 지우기

Variable Length inputdlg() Box

조회 수: 1 (최근 30일)
Brad
Brad 2012년 6월 23일
The inputdlg allows me to type in multiple prompts thus generating multiple input boxes. However, I'd like to have a have a user specifiy the number of inputs (say 5) and then have the inputdlg box pop up with 5 input boxes each with a prompt that says "Input 1", "Input 2",...etc. Any idea how to go about this?

채택된 답변

Walter Roberson
Walter Roberson 2012년 6월 23일
answers = inputdlg( cellstr( num2str((1:N).', 'Input %d') ) );
  댓글 수: 1
Brad
Brad 2012년 6월 23일
Perfect, thanks!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by