print all values in a column
7 次查看(过去 30 天)
显示 更早的评论
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
2023-9-1
编辑:Walter Roberson
2023-9-1
unique ?
Or more likely in your case, findgroups
回答(1 个)
Walter Roberson
2023-9-1
移动:Voss
2023-9-1
[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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C2000 Microcontroller Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!