- ismember()
- find() (if you want subscripts)
Help in finding the matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello! I have a vector of values, and I need to find their location in the matrix
% 1000x100 matrix
% 1x100 data
6 comentarios
Adam Danz
el 12 de Sept. de 2019
That's because all element of Y are indeed in X. Try it the other way around. X as the first input.
Respuestas (1)
J Chen
el 12 de Sept. de 2019
You can use [row,col]=find( ) to get the location and use == to compare numbers
0 comentarios
Ver también
Categorías
Más información sobre Matrices and Arrays 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!