"Think blue, count two." <firstname.lastname@example.org> wrote in message <nvX2p.9969$lO1.email@example.com>... > On 04/02/11 12:08 PM, Braydon wrote: > > I have a Matlab GUI with 10 radio buttons and one push button. When the > > Matlab GUI starts, no radio buttons are selected. > > > > Is there a way to make it so if the user presses a push button, 6 > > specific radio buttons are shown as selected on the GUI? > > If these buttons are inside a buttongroup, then No. > > If they are independent buttons, then just set() the vector of handles > to 'Value', 1 for the ones you want on, and the vector of the remaining > handles to 'Value' 0 for the ones you want to turn off.
Had the same question. You could use check boxes instead. Works great. hButton(button_i) = uicontrol('Style','checkbox','String', name, 'parent',h, ... 'HandleVisibility','on', ... 'pos', [Col(button_i), Row(button_i), ButtonXSize, ButtonYSize], ... 'visible', 'on');