Effacer les filtres
Effacer les filtres

Write cell (contains numbers and strings) to xls

2 vues (au cours des 30 derniers jours)
Yvonne
Yvonne le 18 Juin 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?

Réponses (1)

Walter Roberson
Walter Roberson le 18 Juin 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