Find smallest cell in cell array

8 Ansichten (letzte 30 Tage)
Philip am 19 Apr. 2012
Is there a way to find the smallest sized cell in a cell array?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Apr. 2012
What is "size" in this context? Number of rows? Number of columns? Number of elements? Storage requirement?
Which is smaller:
  4 Kommentare
Jan am 19 Apr. 2012
Or slightly faster:
[minsize, minidx] = min(cellfun('size', YourCell, 2));

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by