How to export cell array to excel

1 visualización (últimos 30 días)
Shannon
Shannon el 4 de Feb. de 2020
Respondida: Bhaskar R el 4 de Feb. de 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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Cell Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by