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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com