OK button does not work..
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
Mischa Kim
le 23 Fév 2014
Modifié(e) : Mischa Kim
le 23 Fév 2014
Oshin, use
message = sprintf('Hello World!\nClick the OK button to continue');
instead. Notice the single prime (') in front of the Hello.
2 commentaires
Mischa Kim
le 23 Fév 2014
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.
oshin
le 23 Fév 2014
1 commentaire
Jan
le 23 Fév 2014
Modifié(e) : Jan
le 23 Fév 2014
Please post comments to answers in the corresponding comment section and open a new thread for a new problem. Then post a complete copy of the error message and the line of code, which causes the error.
Did you redefine the name "msgbox" as a variable?
Voir également
Catégories
En savoir plus sur White dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!