OK button does not work..
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I am using the below code, but when I click OK in popup window, Nothing is displayed. The code resumes when the popup window is closed.
message = sprintf("Hello World!\nClick the OK button to continue');
uiwait(msgbox(message));
disp('This will print after you click Continue');
댓글 수: 0
답변 (2개)
Mischa Kim
2014년 2월 23일
편집: Mischa Kim
2014년 2월 23일
Oshin, use
message = sprintf('Hello World!\nClick the OK button to continue');
instead. Notice the single prime (') in front of the Hello.
댓글 수: 2
Mischa Kim
2014년 2월 23일
The error msg you are receiving now ("Subscript indices...") indicates that the issue is located somewhere else in your code. I recommend posting a separate question for that.
Please post follow-up questions and comments as comments , not as answers.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!