Use unique on a cell array containing two columns

조회 수: 1 (최근 30일)
Hinna Ahmed
Hinna Ahmed 2019년 10월 7일
답변: Prabhan Purwar 2019년 11월 19일
Hello,
I keep on getting this error when applying the unique function to my data. The data consits of a cell array with two column which are different compination of brainregion.
This is the error I get:
Unable to group rows using unique values of the table variable 'BRAINREGION' because it is a cell array with more than one column.
My code:
GroupingVariables3 = {'BRAINREGION'};
[DataTable3,~,ix3] = unique(DataTable(:,GroupingVariables3),'rows');
I hope someone can help :)
  댓글 수: 1
the cyclist
the cyclist 2019년 10월 7일
It would be much easier to help if you uploaded your data (or a small subset that exhibits the error) in a *.mat file.

댓글을 달려면 로그인하십시오.

답변 (1개)

Prabhan Purwar
Prabhan Purwar 2019년 11월 19일

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by