필터 지우기
필터 지우기

Remove the entire rows of 'Unknown' from a table

조회 수: 1 (최근 30일)
sarah Abdellahi
sarah Abdellahi 2018년 10월 9일
댓글: jonas 2018년 10월 9일
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

채택된 답변

Adam Danz
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개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by