<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254119</link>
    <title>MATLAB Central Newsreader - How do I add header information to a matric when using the writng to file?</title>
    <description>Feed for thread: How do I add header information to a matric when using the writng to file?</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>Fri, 19 Jun 2009 02:45:04 -0400</pubDate>
      <title>How do I add header information to a matric when using the writng to file?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254119#658654</link>
      <author>Jack </author>
      <description>I have a 201 x 7 numerical matrix that I want to write to file. Format doesn't really matter provided I can open it in excel (csv is probablt best, but could be ASCII, text, dlm, etc). How do I add header information for each column to the matric when I write the file? Thanks.</description>
    </item>
    <item>
      <pubDate>Fri, 19 Jun 2009 08:32:11 -0400</pubDate>
      <title>Re: How do I add header information to a matric when using the writng </title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254119#658691</link>
      <author>vedenev</author>
      <description>Use xlswrtite function. Wrtie descritpions of colomns in first row.&lt;br&gt;
Using cell arays will allow you to add stings and numbers. Example:&lt;br&gt;
M={'col1','col2';10,12};&lt;br&gt;
xlswrite('tmp_xls_file',M);&lt;br&gt;
&lt;br&gt;
------------------------------------&lt;br&gt;
Maxim Vedenev, Matlab Expert&lt;br&gt;
vedenev@ngs.ru&lt;br&gt;
&lt;a href=&quot;http://simulations.narod.ru/&quot;&gt;http://simulations.narod.ru/&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Sat, 20 Jun 2009 19:27:01 -0400</pubDate>
      <title>Re: How do I add header information to a matric when using the writng to file?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254119#659008</link>
      <author>Yair Altman</author>
      <description>&quot;Jack &quot; &amp;lt;use.text.after.underscore.only_jcannon@csu.edu.au&amp;gt; wrote in message &amp;lt;h1eu3g$i7q$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have a 201 x 7 numerical matrix that I want to write to file. Format doesn't really matter provided I can open it in excel (csv is probablt best, but could be ASCII, text, dlm, etc). How do I add header information for each column to the matric when I write the file? Thanks.&lt;br&gt;
&lt;br&gt;
If you write a CSV file, it will be fast, portable (non-windows) and simple:&lt;br&gt;
fprintf(...,'field #1, field #2, ...');&lt;br&gt;
fprintf(...,data)&lt;br&gt;
&lt;br&gt;
You can also use dlmwrite for this&lt;br&gt;
&lt;br&gt;
Yair Altman &lt;br&gt;
&lt;a href=&quot;http://UndocumentedMatlab.com&quot;&gt;http://UndocumentedMatlab.com&lt;/a&gt; </description>
    </item>
    <item>
      <pubDate>Sat, 20 Jun 2009 20:53:01 -0400</pubDate>
      <title>Re: How do I add header information to a matric when using the writng to file?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254119#659017</link>
      <author>us</author>
      <description>&quot;Jack &quot; &amp;lt;use.text.after.underscore.only_jcannon@csu.edu.au&amp;gt; wrote in message &amp;lt;h1eu3g$i7q$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I have a 201 x 7 numerical matrix that I want to write to file. Format doesn't really matter provided I can open it in excel (csv is probablt best, but could be ASCII, text, dlm, etc). How do I add header information for each column to the matric when I write the file? Thanks.&lt;br&gt;
&lt;br&gt;
this FEX contribution might be helpful&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/23840&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/23840&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
  </channel>
</rss>

