array of numbers to chars in separate cells
Ältere Kommentare anzeigen
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'};
Akzeptierte Antwort
Weitere Antworten (2)
Honglei Chen
am 30 Apr. 2012
E = mat2cell(F,1,ones(1,4)])
Tomas
am 30 Apr. 2012
0 Stimmen
Kategorien
Mehr zu Operators and Elementary Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!