array of numbers to chars in separate cells
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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'};
0 Commenti
Risposta accettata
Honglei Chen
il 30 Apr 2012
E = cellfun(@num2str,mat2cell(F,1,ones(1,4)),'UniformOutput',false)
0 Commenti
Più risposte (2)
Vedere anche
Categorie
Scopri di più su Data Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!