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

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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Argument Definitions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by