MATLAB Answers

The length of the array of cells

2 views (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

  0 Comments

Sign in to comment.

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

  0 Comments

Sign in to comment.

Sign in to answer this question.

Products