Borrar filtros
Borrar filtros

How to find out coordinates of a value from a matrix?

1 visualización (últimos 30 días)
Boni_Pl
Boni_Pl el 30 de Ag. de 2019
Editada: Image Analyst el 30 de Ag. de 2019
Hello. I have a matrix
c=[1 2;
3 4;
5 6;
7 8;
9 10];
% and a vector
v=[0;0;5;0;5]
Now, how to get
5=[5 6;
9 10]
and
0=[1 2;
3 4;
7 8];
Kindly help.

Respuestas (1)

madhan ravi
madhan ravi el 30 de Ag. de 2019
c(v==5,:) % same for 0

Categorías

Más información sobre Geometric Transformation and Image Registration 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!

Translated by