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

1 Ansicht (letzte 30 Tage)
Utsav
Utsav am 15 Feb. 2016
Kommentiert: Utsav am 16 Feb. 2016
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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by