Merging of cell data .

조회 수: 3 (최근 30일)
azizullah khan
azizullah khan 2014년 7월 19일
댓글: azizullah khan 2014년 7월 19일
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.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 19일
a ={ [2] [3] [4] [5] [6]}
b=str2double(strjoin(cellfun(@num2str,a,'un',0),''))
  댓글 수: 10
Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 19일
'23' is not a number, it's a string.
v={'a' '23' 'c'}
out=[v{:}]
azizullah khan
azizullah khan 2014년 7월 19일
Thanks... conversion from char to string is required?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by