Finding row values given a position.
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Riley Heymann
el 25 de Mzo. de 2022
Editada: Riley Heymann
el 27 de Mzo. de 2022
After using the "find" function to get the position of a value in a matrix, how do I retreive the values in the corrosponding row?
1 comentario
Respuesta aceptada
Mathieu NOE
el 25 de Mzo. de 2022
hello
see example below :
use find with linear indices output (see the doc)
A = randn(5,3)
ind = find(A>0 & A<1)
B = A(ind)
2 comentarios
Rik
el 25 de Mzo. de 2022
I interpreted the question a bit differently:
A = randn(5,3)
[r,c]=find(A>0.7)
B = A(unique(r),:)
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB 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!