Need to remove elements which repeated 2 times
Mostrar comentarios más antiguos
I have
A=[1 2; 1,3; 1,4; 1,5; 2,3; 3,6; 4,5; 5,6];
element 2, 4, 6 repeated 2 times. I want to remove them from A.
A_new=[1,3; 1,5]
5 comentarios
KSSV
el 3 de Mzo. de 2020
Where they have repeated? 3 also repeated right?
Turlough Hughes
el 3 de Mzo. de 2020
So you want to remove rows if either value in that row has been repeated in another one?
Turlough Hughes
el 3 de Mzo. de 2020
If you have values repeated in the same row and nowhere else, is that row to be deleted also?
i.e. for this input
A=[1 2; 1,3; 1,4; 1,5; 2,3; 3,6; 4,5; 5,6; 8 8];
is then answer then
A_new = [1 3; 1 5; 8 8]; %or
A_new = [1 3; 1 5];
NA
el 3 de Mzo. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!