Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: csvwrite ?
Date: Mon, 18 Aug 2008 16:42:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <g8c8oq$fva$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219077722 16362 172.30.248.37 (18 Aug 2008 16:42:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 18 Aug 2008 16:42:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1292953
Xref: news.mathworks.com comp.soft-sys.matlab:486073



Hello Everyone,

I am trying to write a 2 dimensional array variable with 6 
rows and 4 columns into a csv file using csvwrite. my 
first row is the column headers. I am not sure if csvwrite 
can write headers? I tried removing the headers and it 
worked fine but with the headers throws an error.

'A'    'B'    'C'    'D'
    [           1]    [11]    [12]    [13]
    [           2]    [21]    [22]    [23]
    [           3]    [31]    [32]    [33]
    [           4]    [41]    [42]    [43]
    [           5]    [51]    [52]    [53]

Can anyone tell me a way to write the values with the 
headers into a CSV file? 

Thanks