Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: uitable help
Date: Wed, 2 Sep 2009 19:05:23 +0000 (UTC)
Organization: Georgia Institute of Technology
Lines: 32
Message-ID: <h7mflj$438$1@fred.mathworks.com>
References: <h7l2qj$9qs$1@fred.mathworks.com> <h7lqrr$6b5$1@fred.mathworks.com> <h7mdhi$ftg$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1251918323 4200 172.30.248.35 (2 Sep 2009 19:05:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 2 Sep 2009 19:05:23 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 939004
Xref: news.mathworks.com comp.soft-sys.matlab:567933


"ben " <controlusc@gmail.com> wrote in message <h7mdhi$ftg$1@fred.mathworks.com>...
> I tried that but It didn't worked.
> 
> Tag name of the table is uitable2
> 
> when i give command as
> set(uitable2,'Data',magic(10))
> 
> the error is "??? Undefined function or variable 'uitable2'."
> 
> Can you make an example please
> 
> 
> 
> "Andy " <theorigamist@gmail.com> wrote in message <h7lqrr$6b5$1@fred.mathworks.com>...
> > "ben " <controlusc@gmail.com> wrote in message <h7l2qj$9qs$1@fred.mathworks.com>...
> > > *I can add a table to my gui by this code:
> > > mytable = uitable; 
> > > set(mytable,'Data',magic(10))
> > > set(mytable,'ColumnWidth',{25})
> > > 
> > > *Or i can add a table by dragging table icon from left frame in GUIDE Layout editor.
> > > 
> > > But when i add a table with Layout editor, i can't access to it from m file, because i don't know how to manipulate like
> > > set(mytable,'Data',magic(10))
> > > 
> > > because i don't know the name of the table, it is not "mytable".
> > > Can you help me please?
> > 
> > Drag the table into your figure, then right click on it and select "Property Inspector".  Change the "tag" field to whatever you want the table to be called.

no, it will be called handles.uitable2. That's how the tags work.