Extracting sub cell arrays from a cell array

조회 수: 11 (최근 30일)
Sam Smith
Sam Smith 2018년 11월 2일
편집: Guillaume 2018년 11월 2일
Suppose I have a 10-by-1 cell array consisting of ten 1-by-7 cell arrays. How do I extract the sub cell arrays to get a 10-by-7 array?

채택된 답변

Guillaume
Guillaume 2018년 11월 2일
편집: Guillaume 2018년 11월 2일
vertcat(yourcellarray{:})
which will fail if any of the subcell arrays does not have the same number of columns as any of the others.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by