Simple MATLAB- how to find indices of max element in matrix?

  • MATLAB
  • Thread starter mikeph
  • Start date
  • #1
1,233
17

Main Question or Discussion Point

Hi,

Say I have a 10x10 matrix, is there a simple code to finding the indices of the maximum value?

I'm trying to use max() but there doesn't appear to be any option of actually returning the index, rather than the value. I don't need the value, just the position.

Thanks,
Mike
 

Answers and Replies

Related Threads on Simple MATLAB- how to find indices of max element in matrix?

Replies
1
Views
4K
Replies
1
Views
14K
Replies
1
Views
6K
  • Last Post
Replies
2
Views
2K
Replies
2
Views
10K
Replies
2
Views
2K
Replies
2
Views
3K
Replies
3
Views
9K
Replies
1
Views
898
Top