compare datasets and remove not common rows
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Doriana
el 8 de Oct. de 2013
Comentada: Doriana
el 8 de Oct. de 2013
Hello all, I have to compare two datasets (a= 89072 x 13 & b=89268 x 37) that must have the same rows, so I have to remove the rows that are not common. The columns number for the two dataset are not the same, so I can't 'Intersect' them. How can I remove these rows please?
Thank you
4 comentarios
Sean de Wolski
el 8 de Oct. de 2013
But there are 13 columns in one and 37 in the other so you are going to have to define some type of definition for "same". Once you've defined "sameness", then we can help identify and remove.
Respuesta aceptada
kittu
el 8 de Oct. de 2013
What do you mean by " I have to remove the rows that are not common"? if you mean to reduce the size of the other dataset(b) and make it equal to
a,
then you can use
b(1:length(a),:)
4 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!