Position of a data at Matrix

2 visualizaciones (últimos 30 días)
sama el 14 de En. de 2015
Comentada: Sara el 14 de En. de 2015
Hello. I have a matrix 1000*2. Then I found the maximum data in first column. Lets say the maximum is for 500*1. Then I need to get the number in 500*2. How can I find out what is the position of my maximum data please?
Thanks
0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

Sara el 14 de En. de 2015
Given the matrix A
[i,j] = find(A == max(max(A))
2 comentariosMostrar NingunoOcultar Ninguno
sama el 14 de En. de 2015
Thanks. However, I am using my matrix at a for loop. Before that, I am calling my data from an Excel file. So, I am looking for anything to add to my code. I am using the maximum and I wanna call the position the maximum. Do you think find is still a good idea?
Sara el 14 de En. de 2015
What do you want to store in A:
• The minimum value of sheeti
• The position of the minimum value of sheeti

Iniciar sesión para comentar.

Categorías

Más información sobre Operating on Diagonal Matrices 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