필터 지우기
필터 지우기

Concatenate together two cell arrays

조회 수: 3 (최근 30일)
Fabio Taccaliti
Fabio Taccaliti 2022년 7월 2일
댓글: Fabio Taccaliti 2022년 7월 3일
Hello,
I have two 102 x 1 cell (respectively CC and DD), each of them with all 32 x 4 doubles.
I would like to create another cell BB (102 x 1) that includes all the elements of the cell CC and DD, I mean it should contain 64 x 4 doubles (the first part 32 x 2 from CC and the second part 32 x 2 from DD).
How can I do it?
Thanks

채택된 답변

Walter Roberson
Walter Roberson 2022년 7월 2일
BB = cellfun(@(c,d) [c;d], CC, DD, 'uniform', 0);
  댓글 수: 3
Walter Roberson
Walter Roberson 2022년 7월 2일
cell2mat(BB)
Fabio Taccaliti
Fabio Taccaliti 2022년 7월 3일
thankss

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by