The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: uibuttongroup callback radio buttons
Replies: 2   Last Post: Apr 3, 2013 3:46 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 21
Registered: 11/2/12
uibuttongroup callback radio buttons
Posted: Apr 1, 2013 3:13 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.