From: iris on
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.
From: Sadik on
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.