How can I extract only the information about the same group from the table information?

1 回表示 (過去 30 日間)
shoki kobayashi
shoki kobayashi 2021 年 1 月 15 日
コメント済み: shoki kobayashi 2021 年 1 月 19 日
Currently, I would like to extract only the information about the same group of tables.
For example, in a table named A
1 3 2
1 4 5
1 5 6
1 6 8
2 3 7
2 5 3
2 7 4
3 9 6
3 4 2
I want to extract the information about the group [1,2,3] for the first column.
  4 件のコメント
dpb
dpb 2021 年 1 月 18 日
Actually, rereading the Q? and looking at the data more closely, I'm guessing what OP is looking for is grouping variables.
Depending upon just what is meant by "table" here, rowfun, varfun or findgroups, splitapply are likely what is really wanted/need.
shoki kobayashi
shoki kobayashi 2021 年 1 月 19 日
Thanks for the reply, @dpb and @Maadhav Akula.
Using ismember worked for me.
I'm sorry that my question was misinterpreted.

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

回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by