Effacer les filtres
Effacer les filtres

Remove the entire rows of 'Unknown' from a table

1 vue (au cours des 30 derniers jours)
sarah Abdellahi
sarah Abdellahi le 9 Oct 2018
Commenté : jonas le 9 Oct 2018
Hello :) I have a table that contains some 'Unknown'. I would like to remove the entire rows of any columns that is 'Unknown'.
Thank you
  1 commentaire
jonas
jonas le 9 Oct 2018
EDIT: sorry misread the question!

Connectez-vous pour commenter.

Réponse acceptée

Adam Danz
Adam Danz le 9 Oct 2018
Assuming the data are stored in a table named ' Valley ', here's how you can remove any rows that contain an ' Unknown '.
Valley(any(strcmp(table2cell(Valley), 'Unknown'),2), :) = []

Plus de réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by