Effacer les filtres
Effacer les filtres

How to find the minimum length of a cell array

5 vues (au cours des 30 derniers jours)
Joseph Lee
Joseph Lee le 10 Déc 2017
Modifié(e) : Stephen23 le 11 Déc 2017
M= {10x107} {10x108} {10x103} {10x105}
how do i find the minimum length among the cells? eg. 103

Réponse acceptée

Matt J
Matt J le 10 Déc 2017
min( cellfun(@(c) size(c,2), M) )

Plus de réponses (1)

Stephen23
Stephen23 le 11 Déc 2017
Modifié(e) : Stephen23 le 11 Déc 2017
Simpler and faster:
min(cellfun('size',M,2))

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by