I have m*n matrix. I want keep only those rows whose atleast one element is greater than any specific value such as 1.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rajesh
el 14 de Oct. de 2021
Respondida: Mathieu NOE
el 14 de Oct. de 2021
I have m*n matrix. I want keep only those rows whose atleast one element is greater than any specific value such as 1.
0 comentarios
Respuesta aceptada
Mathieu NOE
el 14 de Oct. de 2021
hello
try this
m = 3;
n = 5;
A= 1.15*rand(m,n);
threshold = 1;
a = A>threshold;
rows = find(any(a, 2));
0 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!