MATLAB: Find number of rows of each array in a cell

cell

I have a cell of size 4×4, and each array in this cell is a matrix having size nx2. How can I find n(number of rows) of each matrix, any idea?

Best Answer

cellfun(@(c) size(c, 1), yourcellarray)