You can also set it in the open function (or with another callback) by inserting the following line:
set(handles.checkbox1,'Value',1);
or replace 'checkbox1' with any tag that you have assigned to your checkbox. To uncheck the box, simply set the value to zero. Thus, if you have two mutually exclusive options, when you select one, you can automatically deselect the other:
source
share