Filter löschen
Filter löschen

Write cell (contains numbers and strings) to xls

2 Ansichten (letzte 30 Tage)
Yvonne
Yvonne am 18 Jun. 2012
Hi,
I have the following 2 cell array.
SubName - contains string
Movement - contains numbers.
i combine them using this,
combine = [Subname,Movement];
combine is also a cell array.
i Write it to xls, using this:
xlswrite('test.xls',combine);
the error show: The input cell array cannot be converted to a matrix.
Anyone know what I can do to write my cell combine (contains string and numbers) to xls?

Antworten (1)

Walter Roberson
Walter Roberson am 18 Jun. 2012
Which OS are you using, and if you are using Windows then do you have Excel installed? Which MATLAB version are you using?
If you are not using R2012a, and are not using MS Windows with Excel installed, then you can only write numeric data if I recall correctly.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by