Get unique values per table column

조회 수: 38 (최근 30일)
chiefjia
chiefjia 2021년 9월 24일
댓글: Mathieu NOE 2021년 9월 24일
Dear MATLAB experts,
I'm trying to figure out how to get the unique values of each column of a table in MATLAB and I still haven't figure out on how to do it. The table consists of variables, such as 'country', 'company name' and 'clients'. For this reason, it is important for me to figure out each one of the unique countries, company names and clients to be found in this dataset.
I have tried using the unique function and also including a for loop to go through each one of the columns and get the unique values of each column, but with no success yet.
for i=1:width(uf_transactiondates)
uniqueValues_Transactions = unique(uf_transactiondates.(i), 'first', 'rows');
end
I would really appreciate your help.
Thank you in advance

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by