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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!