Path: news.mathworks.com!not-for-mail
From: "iris " <iris.shnirer@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Write to xlm file
Date: Thu, 10 Jun 2010 09:12:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <huqa94$p9c$1@fred.mathworks.com>
Reply-To: "iris " <iris.shnirer@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 1276161124 25900 172.30.248.35 (10 Jun 2010 09:12:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 10 Jun 2010 09:12:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2375811
Xref: news.mathworks.com comp.soft-sys.matlab:643720

hii,
I try to write a word to xlm file with this code:

xlsfile = 'C:\shadow\eli project\imageStatistics.xls';
xlsLocation = sprintf('M%d', imageNum+1);
Lanswer = input('Curvature of the surface Curvature / Flat / Both ?', 's');
Manswer = input('Number of different surface  ?');
answer = [Lanswer Manswer];
xlswrite(xlsfile, answer, 1, xlsLocation);

The result is one letter in every cell.