array of numbers to chars in separate cells
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Honglei Chen
2012년 4월 30일
E = cellfun(@num2str,mat2cell(F,1,ones(1,4)),'UniformOutput',false)
댓글 수: 0
추가 답변 (2개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!