Borrar filtros
Borrar filtros

User Input

3 visualizaciones (últimos 30 días)
Colm
Colm el 5 de En. de 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

Respuesta aceptada

Robert Cumming
Robert Cumming el 5 de En. de 2012
answer = questdlg ( '?', 'Header', 'Yes', 'No', 'Yes' )
strcmp ( answer, 'Yes' )

Más respuestas (0)

Categorías

Más información sobre Dialog Boxes en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by