Path: news.mathworks.com!not-for-mail
From: "Rodney Thomson" <readmore@iheartmatlab.blogspot.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: creating array in GUIDE
Date: Tue, 29 Sep 2009 09:57:03 +0000 (UTC)
Organization: L-3 Communications
Lines: 17
Message-ID: <h9sllf$2t4$1@fred.mathworks.com>
References: <h9sbks$nt3$1@fred.mathworks.com>
Reply-To: "Rodney Thomson" <readmore@iheartmatlab.blogspot.com>
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 1254218223 2980 172.30.248.35 (29 Sep 2009 09:57:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 29 Sep 2009 09:57:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1430350
Xref: news.mathworks.com comp.soft-sys.matlab:573610


"recep mansiz" <aalmoraa@hotmail.com> wrote in message <h9sbks$nt3$1@fred.mathworks.com>...
> Hi all!!
> 
> I have an 'edit text' and an 'add' button. I want to constitue an array of input values from the 'edit text', at each time 'add' is pressed.
> 
> I achieve it with some indirect time consuming ways but I need simpler way.
> 
> thanks in advance!!

You can use str2num and enter the array into the editbox as you would the command line:

>> str2num('[1 2; 3 4]')

ans =

     1     2
     3     4