Azzera filtri
Azzera filtri

Remove the entire rows of 'Unknown' from a table

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

Adam Danz
Adam Danz il 9 Ott 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), :) = []

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by