How can I call all element from cell class ?

조회 수: 4 (최근 30일)
ha ha
ha ha 2018년 3월 5일
편집: Stephen23 2018년 3월 5일
Let's say:
A : 3x1 cell class
A : 3x1 cell class
A={cell_1 ; cell_2 ; cell_3 }
A={[1x2 double];[1x4 double];[1x3 double]}
cell_1 [999,222]
cell_2 [444,222,2000,1000]
cell_3 [999,9000,1000]
Question: How can I call all element from cell A?
result=[999;222;444;2000;1000;9000]

채택된 답변

Stephen23
Stephen23 2018년 3월 5일
편집: Stephen23 2018년 3월 5일
unique([A{:}].','stable')

추가 답변 (1개)

Walter Roberson
Walter Roberson 2018년 3월 5일
cell2mat(cellfun(@transpose, A, 'uniform', 0))

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by