Azzera filtri
Azzera filtri

How to find the minimum length of a cell array

5 visualizzazioni (ultimi 30 giorni)
M= {10x107} {10x108} {10x103} {10x105}
how do i find the minimum length among the cells? eg. 103

Risposta accettata

Matt J
Matt J il 10 Dic 2017
min( cellfun(@(c) size(c,2), M) )

Più risposte (1)

Stephen23
Stephen23 il 11 Dic 2017
Modificato: Stephen23 il 11 Dic 2017
Simpler and faster:
min(cellfun('size',M,2))

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by