Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Write to xlm file
Date: Thu, 10 Jun 2010 11:58:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <huqk0c$oa8$1@fred.mathworks.com>
References: <huqa94$p9c$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1276171084 24904 172.30.248.35 (10 Jun 2010 11:58:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 10 Jun 2010 11:58:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:643773

Hi Iris,

You will need to convert it to a cell. Right before the xlswrite line, you could say:

answer = {answer};

I haven't tried but this should work.

Best.