How to export cell array to excel

1 vue (au cours des 30 derniers jours)
Shannon
Shannon le 4 Fév 2020
I have a cell array, A = {'matlab' 'ver' 12},
When I export it to excel file, number 12 is text type, how to change the type to number instead of text?
Thanks,
Shannon

Réponse acceptée

Bhaskar R
Bhaskar R le 4 Fév 2020
A = {'matlab' 'ver' num2str(12)}; % actually no need of number to string conversion
writecell(A, 'filemname.xlsx');

Plus de réponses (0)

Catégories

En savoir plus sur Cell Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by