how to combine if loop with or
Mostrar comentarios más antiguos
i create a if loop that if i push button1. the program will get the number of edit1. same as button2. however i want to add 2 checkbox for each edit. than just use one button to control. In predict, if i tick 2 checkbox and than push the button, it will show 2 numbers. if i tick one, the program should show 1 number.But in reality, the new program don't have any output. please help!!
3 comentarios
Rik
el 27 de Jul. de 2018
Are you using a single callback which uses get to load the values from the checkboxes? And how have you designed the output?
Kuang-Yu WANG
el 27 de Jul. de 2018
Rik
el 27 de Jul. de 2018
I don't understand what you are trying to achieve with the first part of you if statement. I think you need to swap get and str2num.
Respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!