Use unique on a cell array containing two columns

1 Ansicht (letzte 30 Tage)
Hinna Ahmed
Hinna Ahmed am 7 Okt. 2019
Beantwortet: Prabhan Purwar am 19 Nov. 2019
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 Kommentar
the cyclist
the cyclist am 7 Okt. 2019
It would be much easier to help if you uploaded your data (or a small subset that exhibits the error) in a *.mat file.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Prabhan Purwar
Prabhan Purwar am 19 Nov. 2019

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by