GUI: how to configure radio buttons to activate/grey out a set of checkboxes?
Ältere Kommentare anzeigen
Hello, I'm discovering the MATLAB GUI possibilities. Aim: to provide a user with a GUI to select some parameters that are necessary for running a program code. Specific: how do I configure the action applied to a set of 2 mutually exclusive radio buttons so that they activate or grey out a set of checkboxes. So, for instance, when the user selects the 'On' radio button, a set of checkboxes must be enabled. Can someone help me with this?
Thanks in advance!
1 Kommentar
Paulo Silva
am 30 Aug. 2011
Using GUIDE or not?
Akzeptierte Antwort
Weitere Antworten (2)
geomod
am 1 Sep. 2011
2 Kommentare
Paulo Silva
am 1 Sep. 2011
What you want to do is to show the image not change some axes property
axes(handles.axes2) %select axes2, it becomes the current axes
if get(hObject,'Value') == 1
image(imageA) %or whatever code you have to show the image
else
image(imageB)
end
geomod
am 1 Sep. 2011
geomod
am 2 Sep. 2011
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!