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!