Thread Subject: how do I use "SelectedObject" property?

Subject: how do I use "SelectedObject" property?

From: Alejandro

Date: 3 Jun, 2009 15:38:01

Message: 1 of 3

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.

Subject: how do I use "SelectedObject" property?

From: John

Date: 4 Jun, 2009 14:18:02

Message: 2 of 3

You will get an example if you type 'doc uibuttongroup' on the matlab command line.

"Alejandro " <notasuicida@gmail.com> wrote in message <h065cp$ftl$1@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.

Subject: how do I use "SelectedObject" property?

From: Nabeel Abbood

Date: 13 Feb, 2010 06:54:21

Message: 3 of 3

"Alejandro " <notasuicida@gmail.com> wrote in message <h065cp$ftl$1@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.

same problem for me.

To sort it out I used this syntax :

h=get(handles.Hot_Streams_Order, 'SelectedObject');
HotOrder=get(h,'Tag')

Where: 'Hot_Streams_Order" is the radio buttons group that I used.

Thanks

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
uibuttongroup John 4 Jun, 2009 10:19:03
button group Alejandro 3 Jun, 2009 11:39:15
selectedobject Alejandro 3 Jun, 2009 11:39:15
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com