array of ints to cell array of strings?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I was wondering what is the best way to convert an array of integers to a cell array of strings?
Thanks.
0 Commenti
Risposta accettata
Fangjun Jiang
il 14 Ott 2011
a=magic(5)
b=mat2cell(a,ones(size(a,1),1),ones(size(a,2),1))
c=cellfun(@num2str,b,'uni',false)
0 Commenti
Più risposte (0)
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!