Remove the entire rows of 'Unknown' from a table
1 次查看(过去 30 天)
显示 更早的评论
Hello :) I have a table that contains some 'Unknown'. I would like to remove the entire rows of any columns that is 'Unknown'.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/197454/image.jpeg)
Thank you
采纳的回答
Adam Danz
2018-10-9
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!