Thread Subject: creating array in GUIDE

Subject: creating array in GUIDE

From: recep mansiz

Date: 29 Sep, 2009 07:06:04

Message: 1 of 3

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!!

Subject: creating array in GUIDE

From: recep mansiz

Date: 29 Sep, 2009 09:56:03

Message: 2 of 3

no reply to this easy question??

Subject: creating array in GUIDE

From: Rodney Thomson

Date: 29 Sep, 2009 09:57:03

Message: 3 of 3

"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

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
guide Sprinceana 29 Sep, 2009 08:03:09
gui Sprinceana 29 Sep, 2009 08:03:09
array Sprinceana 29 Sep, 2009 08:03:09
rssFeed for this Thread

Contact us at files@mathworks.com