Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: uitable help
Date: Wed, 2 Sep 2009 13:10:19 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <h7lqrr$6b5$1@fred.mathworks.com>
References: <h7l2qj$9qs$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1251897019 6501 172.30.248.38 (2 Sep 2009 13:10:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 2 Sep 2009 13:10:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1895050
Xref: news.mathworks.com comp.soft-sys.matlab:567830


"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.