Path: news.mathworks.com!not-for-mail
From: "Nabeel Abbood" <nabeel.abbood@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how do I use "SelectedObject" property?
Date: Sat, 13 Feb 2010 06:54:21 +0000 (UTC)
Organization: UTM
Lines: 15
Message-ID: <hl5ias$p04$1@fred.mathworks.com>
References: <h065cp$ftl$1@fred.mathworks.com>
Reply-To: "Nabeel Abbood" <nabeel.abbood@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1266044061 25604 172.30.248.38 (13 Feb 2010 06:54:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Feb 2010 06:54:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1381305
Xref: news.mathworks.com comp.soft-sys.matlab:607759


"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