array of ints to cell array of strings?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I was wondering what is the best way to convert an array of integers to a cell array of strings?
Thanks.
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 14 Okt. 2011
a=magic(5)
b=mat2cell(a,ones(size(a,1),1),ones(size(a,2),1))
c=cellfun(@num2str,b,'uni',false)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Types finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!