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

49 次查看(过去 30 天)
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