User Input
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
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
0 Commenti
Risposta accettata
  Robert Cumming
      
 il 5 Gen 2012
        answer = questdlg ( '?', 'Header', 'Yes', 'No', 'Yes' )
strcmp ( answer, 'Yes' )
0 Commenti
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

