Azzera filtri
Azzera filtri

User Input

3 visualizzazioni (ultimi 30 giorni)
Colm
Colm il 5 Gen 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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Dialog Boxes in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by