array of ints to cell array of strings?
조회 수: 1 (최근 30일)
이전 댓글 표시
I was wondering what is the best way to convert an array of integers to a cell array of strings?
Thanks.
댓글 수: 0
채택된 답변
Fangjun Jiang
2011년 10월 14일
a=magic(5)
b=mat2cell(a,ones(size(a,1),1),ones(size(a,2),1))
c=cellfun(@num2str,b,'uni',false)
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!