<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264471</link>
    <title>MATLAB Central Newsreader - write2excel</title>
    <description>Feed for thread: write2excel</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 29 Oct 2009 14:57:01 -0400</pubDate>
      <title>write2excel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264471#690679</link>
      <author>Teodor </author>
      <description>Hello,&lt;br&gt;
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. &lt;br&gt;
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.&lt;br&gt;
Can enyone help me with this problem?</description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 16:05:57 -0400</pubDate>
      <title>Re: write2excel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264471#690708</link>
      <author>plim</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
this is not the best solution: you can read the data from excel to&lt;br&gt;
matlab, append the new data, and write it again to excel...&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Oct 29, 2:57&#160;pm, &quot;Teodor &quot; &amp;lt;teodoralexan...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hello,&lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; Can enyone help me with this problem?</description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 16:12:03 -0400</pubDate>
      <title>Re: write2excel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264471#690711</link>
      <author>Teodor </author>
      <description>plim &amp;lt;manuela.cotrim@gmail.com&amp;gt; wrote in message &amp;lt;23101253-c706-4073-be1c-af1693f8a0fc@r5g2000yqb.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; this is not the best solution: you can read the data from excel to&lt;br&gt;
&amp;gt; matlab, append the new data, and write it again to excel...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; On Oct 29, 2:57?pm, &quot;Teodor &quot; &amp;lt;teodoralexan...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hello,&lt;br&gt;
&amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; Can enyone help me with this problem?&lt;br&gt;
&lt;br&gt;
Hmmm...I am new in matlab....can you explain me how to do this?&lt;br&gt;
Thanks in advance!</description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 16:24:49 -0400</pubDate>
      <title>Re: write2excel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264471#690720</link>
      <author>plim</author>
      <description>Hi again,&lt;br&gt;
&lt;br&gt;
as I mention before this is not the best solution for sure, but until&lt;br&gt;
you find other you can use this one:&lt;br&gt;
&lt;br&gt;
- read the data that is already in your excel file to a matrix, using&lt;br&gt;
xlsread.&lt;br&gt;
- Append the new data (from textbox) in this matrix, in a new row&lt;br&gt;
- write the new matrix in the excel file (xlswrite)&lt;br&gt;
&lt;br&gt;
See help for xlsread and xlswrite, you have there some examples.&lt;br&gt;
&lt;br&gt;
Plim&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Oct 29, 4:12&#160;pm, &quot;Teodor &quot; &amp;lt;teodoralexan...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; plim &amp;lt;manuela.cot...@gmail.com&amp;gt; wrote in message &amp;lt;23101253-c706-4073-be1c-af1693f8a...@r5g2000yqb.googlegroups.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; this is not the best solution: you can read the data from excel to&lt;br&gt;
&amp;gt; &amp;gt; matlab, append the new data, and write it again to excel...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Oct 29, 2:57?pm, &quot;Teodor &quot; &amp;lt;teodoralexan...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Hello,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Can enyone help me with this problem?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hmmm...I am new in matlab....can you explain me how to do this?&lt;br&gt;
&amp;gt; Thanks in advance!</description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 19:04:54 -0400</pubDate>
      <title>Re: write2excel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264471#690796</link>
      <author>NZTideMan</author>
      <description>On Oct 30, 3:57&#160;am, &quot;Teodor &quot; &amp;lt;teodoralexan...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hello,&lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; Can enyone help me with this problem?&lt;br&gt;
&lt;br&gt;
The way I'd do it is to use the facility in xlswrite to name the cell&lt;br&gt;
you want to place the data in.  If you want the data to go into column&lt;br&gt;
A, you would define an index indx=0, then do this:&lt;br&gt;
indx=indx+1;&lt;br&gt;
xlswrite(xlsfile,data,sheet,['A' num2str(indx)])</description>
    </item>
    <item>
      <pubDate>Fri, 30 Oct 2009 15:32:35 -0400</pubDate>
      <title>Re: write2excel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264471#690984</link>
      <author>plim</author>
      <description>&lt;br&gt;
Hi NZTideMan,&lt;br&gt;
&lt;br&gt;
Do you know a way to get indx automatically from the excel file?&lt;br&gt;
&lt;br&gt;
thanks&lt;br&gt;
Plim&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Oct 29, 7:04&#160;pm, NZTideMan &amp;lt;mul...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Oct 30, 3:57&#160;am, &quot;Teodor &quot; &amp;lt;teodoralexan...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Hello,&lt;br&gt;
&amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; Can enyone help me with this problem?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The way I'd do it is to use the facility in xlswrite to name the cell&lt;br&gt;
&amp;gt; you want to place the data in. &#160;If you want the data to go into column&lt;br&gt;
&amp;gt; A, you would define an index indx=0, then do this:&lt;br&gt;
&amp;gt; indx=indx+1;&lt;br&gt;
&amp;gt; xlswrite(xlsfile,data,sheet,['A' num2str(indx)]</description>
    </item>
    <item>
      <pubDate>Mon, 02 Nov 2009 13:32:02 -0500</pubDate>
      <title>Re: write2excel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264471#691486</link>
      <author>Teodor </author>
      <description>plim &amp;lt;manuela.cotrim@gmail.com&amp;gt; wrote in message &amp;lt;b5ff1455-26b5-4e10-94b5-25b1a8132b82@v25g2000yqk.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi NZTideMan,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Do you know a way to get indx automatically from the excel file?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thanks&lt;br&gt;
&amp;gt; Plim&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; On Oct 29, 7:04?pm, NZTideMan &amp;lt;mul...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; On Oct 30, 3:57?am, &quot;Teodor &quot; &amp;lt;teodoralexan...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Hello,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Can enyone help me with this problem?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The way I'd do it is to use the facility in xlswrite to name the cell&lt;br&gt;
&amp;gt; &amp;gt; you want to place the data in. ?If you want the data to go into column&lt;br&gt;
&amp;gt; &amp;gt; A, you would define an index indx=0, then do this:&lt;br&gt;
&amp;gt; &amp;gt; indx=indx+1;&lt;br&gt;
&amp;gt; &amp;gt; xlswrite(xlsfile,data,sheet,['A' num2str(indx)]&lt;br&gt;
&lt;br&gt;
What I want is whenever I put the new value into the excel, I wold have to read before the excel file and get the index of the first unwritten row and write there the new value. &lt;br&gt;
Do you know how to do this? </description>
    </item>
  </channel>
</rss>

