Deleting rows based on the entries of first row
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
fadzhi
el 4 de Ag. de 2016
Respondida: Walter Roberson
el 4 de Ag. de 2016
Hi all, I am working with text files and there are duplicate entries in the first column which stands for time. After loading, i am using 'unique' command on this column but when the same is applied on the other columns i get different length because of the entries. Is there any command that finds duplicate entries in first columns and then removes the whole row particularly for text files Best Regards, Fawad Maqbool
0 comentarios
Respuesta aceptada
Walter Roberson
el 4 de Ag. de 2016
[~, uidx] = unique(YourArray(:,1));
NewArray = YourArray(uidx, :);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!