フィルターのクリア

help deleting rows with column value in a table of data

5 ビュー (過去 30 日間)
Maritza Torres
Maritza Torres 2019 年 12 月 9 日
編集済み: Maritza Torres 2019 年 12 月 9 日
I need help deleting all the rows with value of '2' in the array column in the data on my table

回答 (2 件)

Bhaskar R
Bhaskar R 2019 年 12 月 9 日
編集済み: Bhaskar R 2019 年 12 月 9 日
Suppose your table data stored in the variable T
T(find(T.ARRAY == 2),:) = [];
  3 件のコメント
Bhaskar R
Bhaskar R 2019 年 12 月 9 日
編集済み: Bhaskar R 2019 年 12 月 9 日
Can you provide small portion of your table data in mat file
Bhaskar R
Bhaskar R 2019 年 12 月 9 日
No, it is not a mat (MATLAB saved workspace file). It is an image.
Run the below command
save tablefile ABER1001
You will see the tablefile.mat in the current working directory.
Share tablefile.mat file

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


Maritza Torres
Maritza Torres 2019 年 12 月 9 日
  2 件のコメント
Bhaskar R
Bhaskar R 2019 年 12 月 9 日
Run this command
ABER1001(find(ABER1001.ARRAY == 2),:) = [];
Maritza Torres
Maritza Torres 2019 年 12 月 9 日
It worked. Thank you so much for all of your help!!!

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

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by