Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!l2g2000yqd.googlegroups.com!not-for-mail
From: plim <manuela.cotrim@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: write2excel
Date: Thu, 29 Oct 2009 09:24:49 -0700 (PDT)
Organization: http://groups.google.com
Lines: 39
Message-ID: <96d19c05-75ff-4341-a7cd-768ab0afe3b9@l2g2000yqd.googlegroups.com>
References: <hccafs$9e1$1@fred.mathworks.com> <23101253-c706-4073-be1c-af1693f8a0fc@r5g2000yqb.googlegroups.com> 
	<hccesj$klc$1@fred.mathworks.com>
NNTP-Posting-Host: 195.23.184.235
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1256833489 19447 127.0.0.1 (29 Oct 2009 16:24:49 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 29 Oct 2009 16:24:49 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: l2g2000yqd.googlegroups.com; posting-host=195.23.184.235; 
	posting-account=K0jVXwoAAADXjS2kFZeVNOu1YweNsvCm
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) 
	Gecko/20091016 Firefox/3.5.4,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:581039


Hi again,

as I mention before this is not the best solution for sure, but until
you find other you can use this one:

- read the data that is already in your excel file to a matrix, using
xlsread.
- Append the new data (from textbox) in this matrix, in a new row
- write the new matrix in the excel file (xlswrite)

See help for xlsread and xlswrite, you have there some examples.

Plim


On Oct 29, 4:12 pm, "Teodor " <teodoralexan...@yahoo.com> wrote:
> plim <manuela.cot...@gmail.com> wrote in message <23101253-c706-4073-be1c-af1693f8a...@r5g2000yqb.googlegroups.com>...



> > Hi,
>
> > this is not the best solution: you can read the data from excel to
> > matlab, append the new data, and write it again to excel...
>
> > On Oct 29, 2:57?pm, "Teodor " <teodoralexan...@yahoo.com> wrote:
> > > Hello,
> > > I have a textbox and a button. When I write a number into the textbox and push the button, I want to save that value into an excel file.
> > > Till this point it is simple, but when I want to write a new value into that box and push again the button to save the new value into the excel file, this new value it will overwrite the old one. I want to put the new value in the next row, below the old value in the excel file.
> > > Can enyone help me with this problem?
>
> Hmmm...I am new in matlab....can you explain me how to do this?
> Thanks in advance!