array of numbers to chars in separate cells
Mostrar comentarios más antiguos
Hi, I would like to know how to get separate cells with chars from number array:
from
F=[1 20 30 100];
to
E={'1','20','30','100'};
Respuesta aceptada
Más respuestas (2)
Honglei Chen
el 30 de Abr. de 2012
E = mat2cell(F,1,ones(1,4)])
Tomas
el 30 de Abr. de 2012
0 votos
Categorías
Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!