Separate two groups of coordinate points array where one group of coordinate points are given?.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MD RESHAD UL HOQUE
am 30 Jan. 2018
Beantwortet: Akira Agata
am 30 Jan. 2018
I have a long set of coordinate points say (666624x2) of two groups (A, B). One group (say A) of coordinate points are given (5900 x 2). I have to split two group (A, B). How can I find the other group using the given group?.
Thanks
0 Kommentare
Akzeptierte Antwort
Akira Agata
am 30 Jan. 2018
dataAll = rand(100,2); % List of all coordinate points
dataA = dataAll(dataAll(:,1)>0.5,:);% Group A (part of dataAll)
idx = ismember(dataAll,dataA);
idx = all(idx,2);
dataB = dataAll(~idx,:); % Group B (part of dataAll)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!