How to assign only first member in matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 ?
0 comentarios
Respuesta aceptada
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
Más respuestas (0)
Ver también
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!