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

45 ビュー (過去 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 Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by