Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Argument Definitions in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by