Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!q2g2000vbr.googlegroups.com!not-for-mail
From: vedenev <vedenev.maxim@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How do I add header information to a matric when using the writng 
	to file?
Date: Fri, 19 Jun 2009 01:32:11 -0700 (PDT)
Organization: http://groups.google.com
Lines: 9
Message-ID: <4020440a-77a6-4f3c-b7d5-3db6102668be@q2g2000vbr.googlegroups.com>
References: <h1eu3g$i7q$1@fred.mathworks.com>
NNTP-Posting-Host: 89.251.107.20
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1245400331 28985 127.0.0.1 (19 Jun 2009 08:32:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 19 Jun 2009 08:32:11 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q2g2000vbr.googlegroups.com; posting-host=89.251.107.20; 
	posting-account=4kIhLQoAAAA5O3xkqw3S1hEVU2lwNKQO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.11) 
	Gecko/2009060215 Firefox/3.0.11,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:548855


Use xlswrtite function. Wrtie descritpions of colomns in first row.
Using cell arays will allow you to add stings and numbers. Example:
M={'col1','col2';10,12};
xlswrite('tmp_xls_file',M);

------------------------------------
Maxim Vedenev, Matlab Expert
vedenev@ngs.ru
http://simulations.narod.ru/