print all values in a column

Hi,
I have a large dataset with over 4 million rows. I do not know all the values of a particular column. There are 2 that I know, and 1-2 others hidden among the 4 million. How can I find the other values so I can split the datasets by values of that column?
Thanks,
Tim

2 件のコメント

Walter Roberson
Walter Roberson 2023 年 9 月 1 日
編集済み: Walter Roberson 2023 年 9 月 1 日
Or more likely in your case, findgroups
Timothy
Timothy 2023 年 9 月 1 日
findgroups, I believe - just one "print" of each group, divided by number.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 9 月 1 日
移動済み: Voss 2023 年 9 月 1 日

0 投票

[GroupNumber, GroupValues] = findgroups(YourTable.AppropriateColumnName);
Then all of the entries in GroupNumber that == 1 had AppropriateColumnName value the same as GroupValues(1), and all of the entries in GroupNumber == 2 had AppropriateColumnName value the same as GroupValues(2) and so on.

1 件のコメント

Timothy
Timothy 2023 年 9 月 1 日
移動済み: Voss 2023 年 9 月 1 日
Thank you! That worked!

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

カテゴリ

ヘルプ センター および File ExchangeLabels and Annotations についてさらに検索

質問済み:

2023 年 9 月 1 日

移動済み:

2023 年 9 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by