Date: Apr 1, 2013 3:13 PM
Author: zack00
Subject: uibuttongroup callback radio buttons

Hi..I have a code with uibuttongroup:

h1kanGrp = uibuttongroup('Position',[0 0.46 0.055 0.44], 'Units','Normalized');
h22 = uicontrol ('Style','radio','Parent',h1kanGrp, 'HandleVisibility','off', 'Tag', 'ch1s', 'Position', [1 240 40 20],'String','CH1');
h23 = uicontrol ('Style','radio','Parent',h1kanGrp, 'HandleVisibility','off','Tag', 'ch2s', 'Position', [1 210 40 20],'String','CH2');
h24 = uicontrol ('Style','radio','Parent',h1kanGrp, 'HandleVisibility','off','Tag', 'ch3s', 'Position', [1 180 40 20],'String','CH3');
h25 = uicontrol ('Style','radio','Parent',h1kanGrp, 'HandleVisibility','off','Tag', 'ch4s', 'Position', [1 150 40 20],'String','CH4');
h26 = uicontrol ('Style','radio','Parent',h1kanGrp, 'HandleVisibility','off','Tag', 'ch5s', 'Position', [1 120 40 20],'String','CH5');
h27 = uicontrol ('Style','radio','Parent',h1kanGrp, 'HandleVisibility','off','Tag', 'ch6s', 'Position', [1 90 40 20],'String','CH6');
h28 = uicontrol ('Style','radio','Parent',h1kanGrp, 'HandleVisibility','off','Tag', 'ch7s', 'Position', [1 60 40 20],'String','CH7');
h29 = uicontrol ('Style','radio','Parent',h1kanGrp, 'HandleVisibility','off','Tag', 'ch8s', 'Position', [1 30 40 20],'String','CH8');

i have a problem with a callback..How can I create a callback with uibuttongroup?

for example: if is first radio button checked A=2

can you help me?