Merging of cell data .
조회 수: 3 (최근 30일)
이전 댓글 표시
a =
[2] [3] [4] [5] [6]
a is of type cell want output of type cell like
out= [23456]
please send me general code for any order of a...and/or if the number consist of sentence.
thanks in advance.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 7월 19일
a ={ [2] [3] [4] [5] [6]}
b=str2double(strjoin(cellfun(@num2str,a,'un',0),''))
댓글 수: 10
Azzi Abdelmalek
2014년 7월 19일
'23' is not a number, it's a string.
v={'a' '23' 'c'}
out=[v{:}]
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!