Remove the entire rows of 'Unknown' from a table

4 Ansichten (letzte 30 Tage)
sarah Abdellahi
sarah Abdellahi am 9 Okt. 2018
Kommentiert: jonas am 9 Okt. 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

Akzeptierte Antwort

Adam Danz
Adam Danz am 9 Okt. 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), :) = []

Weitere Antworten (0)

Kategorien

Mehr zu Numeric Types finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by