How can i find deleted rows from matrix??
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Triveni
el 9 de Mzo. de 2016
Comentada: Stephen23
el 9 de Mzo. de 2016
x0 = [2 3 2 2 2;
2 3 2 2 2;
2 4 1 2 2;
2 4 1 2 2;
2 3 2 2 2;
2 3 2 2 2];
x0(any(x0<2,2),:) = [];
x0 = [2 3 2 2 2;
2 3 2 2 2;
2 3 2 2 2;
2 3 2 2 2];
I want to see deleted row separately i.e
2 4 1 2 2;
2 4 1 2 2;
I want to know index of x0 which deleted.
Respuesta aceptada
KSSV
el 9 de Mzo. de 2016
use k = x0(any(x0<2,2),:) ;
k will be your matrix which you are going to delete.
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!