Have MATLAB code pause and then take input from command line
조회 수: 2 (최근 30일)
이전 댓글 표시
I know 'pause' halts MATLAB code and waits for you to hit 'Enter' before continuing. How can I pause the code, and then have it take an input from the command line. For example, I want the code to run, and then pause before a for loop, and if I put in "1" then the for loop executes one bit of code or if I put in "2" the for loop executes a different bit of code. Thank you.
댓글 수: 0
채택된 답변
dpb
2014년 10월 5일
편집: Image Analyst
2014년 10월 5일
doc input % plain text
doc inputdlg % gui dialog box
help iofun
help uitools
for wider scope of choices overall...
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!