How can i get a GUI tick-box to create an output in workspace?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am designing a GUI where 4 tick-boxes decide which channels to calculate - so in theory i want to be able to run the calculation with anywhere between 0-4 channels loaded - i have everything worked out apart from getting the tick boxes to interact with the calculation. In the calculation there are 4 if valueA == 1 where i need to have an input of either 1 or 0 from the tick-boxes, i have tried evalin, and all the other sugestions on this site (so far spent 7 hours on this alone) so would one of you kind people do an idiots guide to this - i don't care if it's not the most elegant or fastest way of doing it (the calculation takes 1-2hours so 5 seconds is nothing!)
so to sumarize for those that didn't read that - i want a piece of code (explained if you're kind ) which when you click on a tick-box changes a value of either something in handles or workspace so i can use it in another separate program.
thanks in advance, Oliver
oh - please dont just link another page - i've spent hours going thourgh them all already :(
0 comentarios
Respuesta aceptada
Image Analyst
el 6 de Sept. de 2012
Try MAGIC. It's a nice framework that has all the typical widgets on it.
Basically to get the checkboxes' values you just do
checkBoxValue1 = get(handles.checkbox1, 'Value');
checkBoxValue2 = get(handles.checkbox2, 'Value');
checkBoxValue3 = get(handles.checkbox3, 'Value');
checkBoxValue4 = get(handles.checkbox4, 'Value');
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing 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!