I was able to create a set of checkboxes using uicontrol….I need 40 checkboxes and thought it would be faster to use some code and get this done….great it worked….
cbh(i)….checkbox (1)to checkbox(40)….assigning a string from handles.label(i)….this works great
for i=1:40; cbh(i) = uicontrol('Style','checkbox',… 'String',handles.label(i),… 'Value',0,'Position',[30 20*i 130 20]);
end
Problem Statement: How do I know when a checkbox has been selected. A Callback routine has not been created in the m file for each checkbox when using the uicode method.
I understand I can use Guide and manually insert 40 checkboxes , which will then have the 40 Callback routines I am require. I will do this if required, if I can get a solution with the uicontrol method that would be ideal
I need to know that a Checkbox state has changed and then update a plot.
thanks gb/
Best Answer