MATLAB: Xlswrite not writing few entries

matlab r2011b 64 bitxlswrite

Hello. I am using xlswrite to write cell arrays to an excel file. However, the function is sometimes omitting entire column of data. For example, this is my cell array.
I am using the command
xlswrite(strcat(answer{1:end},'.xlsx'),outputListAnalysis,'outputListAnalysis','A1');
And the excel sheet has the following entries,
As you can see, only (1,1) entry is written to the excel file and the rest column is empty. This does not happen if i write a single column cell array.
What causes such a scenario?

Best Answer

From
doc xlswrite
...
Input Arguments
...
A — Data to writematrix | cell array
Data to write, specified as a two-dimensional numeric or character array, or, if each cell
contains a single element, a cell array.
If A is a cell array containing something other than a scalar numeric or a string,
then xlswrite silently leaves the corresponding cell in the spreadsheet empty.
It seems there must be that there's something not meeting that criterion in the cell array.