how to find how many elements are there in a cell of an array?

조회 수: 48 (최근 30일)
iB
iB 2019년 9월 21일
댓글: iB 2019년 9월 21일
I have an array containing cells containing different number of elements, cell1{1,3,4,2}, cell2{2,2,1,2,3,1,1}, cell3{4,9,5}... How to find how many elements in every cell or in a specific cell? thank you

채택된 답변

madhan ravi
madhan ravi 2019년 9월 21일
No_of_elements = cellfun(@numel, cells)

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by