how to eliminate the small values in cell array

1 次查看(过去 30 天)
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
t(cellfun(@numel, t) >= 10)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by