how to eliminate the small values in cell array

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?

 採用された回答

Walter Roberson
Walter Roberson 2022 年 11 月 7 日

0 投票

t(cellfun(@numel, t) >= 10)

1 件のコメント

uzzi
uzzi 2022 年 11 月 7 日
Thank you very much. It works!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

質問済み:

2022 年 11 月 7 日

コメント済み:

2022 年 11 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by