The length of the array of cells

1 view (last 30 days)
Lev Mihailov
Lev Mihailov on 21 Jun 2019
Answered: Lev Mihailov on 24 Jun 2019
Hello! I have an array of cells from the matrix, the number of rows in each cell is different, and I need to get this very length, please help

Answers (2)

madhan ravi
madhan ravi on 21 Jun 2019
cellfun('prodofsize',yourcellarray)
  1 Comment
madhan ravi
madhan ravi on 21 Jun 2019
cellfun('size',yourcellarray,1) % 1 returns row number and 2 column

Sign in to comment.


Lev Mihailov
Lev Mihailov on 24 Jun 2019
Thanks, the first version helped

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!