From: Royi Avital on
"Alejandro " <notasuicida(a)gmail.com> wrote in message <h065cp$ftl$1(a)fred.mathworks.com>...
> Hello, I'm using two radio buttons in a button group to select between two different plots, I read the documentation, and I found that I need to use the SelectedObject property of the button group, to let other functions know which element of the group is selected. The problem is that I can't find an example about how to use this property. Can anyone show me an example?
>
> Thanks in advance.

Moreover, How do I select a button from another function?
I tried:
set(handles.DisplayOptions, 'SelectedObject', [some value]);

Yet I can't know the correct value before running the GUI.

To make things clear, I have a GUI with a group of radio buttons - 'DisplayOptions'.
I want to select a button from another Function within the GUI.

Thanks.
From: Royi Avital on
Anyone?
How do I control the selection in a Radio Button Group from another function?
How do I know the selected button from another function?

I couldn't do it using 'SelectedObject' as I don't have the handler value before.

Thanks.


"Royi Avital" <RoyiREMOVEAvital(a)yahoo.com> wrote in message <hs1cv5$cbp$1(a)fred.mathworks.com>...
> "Alejandro " <notasuicida(a)gmail.com> wrote in message <h065cp$ftl$1(a)fred.mathworks.com>...
> > Hello, I'm using two radio buttons in a button group to select between two different plots, I read the documentation, and I found that I need to use the SelectedObject property of the button group, to let other functions know which element of the group is selected. The problem is that I can't find an example about how to use this property. Can anyone show me an example?
> >
> > Thanks in advance.
>
> Moreover, How do I select a button from another function?
> I tried:
> set(handles.DisplayOptions, 'SelectedObject', [some value]);
>
> Yet I can't know the correct value before running the GUI.
>
> To make things clear, I have a GUI with a group of radio buttons - 'DisplayOptions'.
> I want to select a button from another Function within the GUI.
>
> Thanks.
 | 
Pages: 1
Prev: FFT
Next: setting color with data