Remove the entire rows of 'Unknown' from a table
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
1 Kommentar
Akzeptierte Antwort
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), :) = []
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numeric Types finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!