Effacer les filtres
Effacer les filtres

how to make an array without empty cell

2 vues (au cours des 30 derniers jours)
uzzi
uzzi le 7 Nov 2022
Commenté : uzzi le 7 Nov 2022
Hello,
I have an array of this and there are some empty cells. I am trying to eliminate those with this command but it is working. I want my cell array with zero empty cells. Can someone help me?
t(all(emptyCells,:) = []
t(emptyCells) = [];

Réponse acceptée

Walter Roberson
Walter Roberson le 7 Nov 2022
t(~cellfun(@isempty, t))
  1 commentaire
uzzi
uzzi le 7 Nov 2022
Thank you very much. Your answer worked.

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