To find Maximum number of entries in a 1*36 cell

1 view (last 30 days)
m=1*36 cell : each 36 column of 'm' contains n*1 double matrix say : n1*1 n2*1.....n25*1 .......n36*1
I have to find maximum of n1 to n36
What should I do?
max(m{:}) returns too many input arguments.

Accepted Answer

Sean de Wolski
Sean de Wolski on 15 Feb 2016
[nmx, idx] = max(cellfun(@numel,your_cell))

More Answers (0)

Categories

Find more on Argument Definitions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!