Hello, I have some checkbox and a push button to select all of them.
Code of my button "Select all" :
for i = 1:5 set(sprintf('handles.check%d',i),'value', 1)end
But, I would like to go to the checkbox callback function each time I select one of them. How can I do this ? Because for the moment, all my check box are selected when I push the button "Select all" but the code into each checkbxo is not executed. My code in a checkbox is :
function check1_Callback(hObject, eventdata, handles) if(get(hObject ,'Value') == 1) ind=1; assignin('base','ind',ind); end end
Best Answer