User Input

8 vues (au cours des 30 derniers jours)
Colm
Colm le 5 Jan 2012
I basically ask a user to enter Yes or No in a message box. How do I either convert their answer into a value of 1 for Yes, yes or Y? Thanks

Réponse acceptée

Robert Cumming
Robert Cumming le 5 Jan 2012
answer = questdlg ( '?', 'Header', 'Yes', 'No', 'Yes' )
strcmp ( answer, 'Yes' )

Plus de réponses (0)

Catégories

En savoir plus sur App Building dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by