MATLAB: Checking a GUI Checkbox ‘Value’

gui

If I have a few Gui checkbox statements, how do I check the values of them to see if they changed from my original default setting ?? Here is what I used for my first checkbox statement:
h.checkbox1 = uicontrol(current_f,'Style','checkbox', 'Value',1)

Best Answer

Then:
value = get(h.checkbox1, 'Value');
If you want to store the initial value of the checkbox, you could use either the handles struct or the UserData of the uicontrol.
Related Question