MATLAB Answers

Position of a data at Matrix

5 views (last 30 days)
sama on 14 Jan 2015
Commented: Sara on 14 Jan 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?

Accepted Answer

Sara on 14 Jan 2015
Given the matrix A
[i,j] = find(A == max(max(A))
Sara on 14 Jan 2015
What do you want to store in A:
  • The minimum value of sheeti
  • The position of the minimum value of sheeti

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!