How can I select number with dialog box?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have this code. But I want to select with a dialog box the number. I don't want to enter in the code and change the number. So, for example I would like to use this command:
dati = inputdlg({'**************** Insert number ****************'})
dati_1 = dati{1};
How can I do it?
댓글 수: 0
채택된 답변
nl2605
2014년 3월 20일
You have to use str2num to change entered value to number. You can use that number then.
http://www.mathworks.de/de/help/matlab/ref/inputdlg.html This should help.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Dialog Boxes에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!