Borrar filtros
Borrar filtros

How to assign only first member in matrix

1 visualización (últimos 30 días)
Rohan  Mehta
Rohan Mehta el 24 de Jun. de 2019
Comentada: Rohan Mehta el 24 de Jun. de 2019
I am using q(t) = find(A == max1(t));
But problem here is in max1(4) has value of 134 and in A 134 is repeated two times I want only first location of 134 how to do that ?

Respuesta aceptada

madhan ravi
madhan ravi el 24 de Jun. de 2019
Editada: madhan ravi el 24 de Jun. de 2019
q(t) = find(A == max1(t),1,'first')
  3 comentarios
madhan ravi
madhan ravi el 24 de Jun. de 2019
see edited answer
Rohan  Mehta
Rohan Mehta el 24 de Jun. de 2019
done,
Thank you so much

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays 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