フィルターのクリア

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
  1 件のコメント
jonas
jonas 2018 年 10 月 9 日
EDIT: sorry misread the question!

サインインしてコメントする。

採用された回答

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 Center および File ExchangeTables についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by