how to eliminate the small values in cell array

1 Ansicht (letzte 30 Tage)
uzzi
uzzi am 7 Nov. 2022
Kommentiert: uzzi am 7 Nov. 2022
I have a cell array t with 1x39 size. As you can se, there are some small values such as 1x1 datetime and 3x1 datetime. I want to eliminate the cell if it is less than 10x1 . Can someone help me how to do that?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Nov. 2022
t(cellfun(@numel, t) >= 10)

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by