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 Exchange에서 Labels 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