Effacer les filtres
Effacer les filtres

how to eliminate the small values in cell array

2 vues (au cours des 30 derniers jours)
uzzi
uzzi le 7 Nov 2022
Commenté : uzzi le 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?

Réponse acceptée

Walter Roberson
Walter Roberson le 7 Nov 2022
t(cellfun(@numel, t) >= 10)
  1 commentaire
uzzi
uzzi le 7 Nov 2022
Thank you very much. It works!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by