- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For example we have the matrix
! A is the array | 4 9 8 -8|
! | 2 1 -1 5|
! | 9 4 -1 9|
! | -7 5 7 -3|
when we use maxloc(A), we get 3,1
but there has the other places that the value is 9
so how could we find the all the max value locations?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Repeat maxloc on the section of the array past the first result. If another equal value found and not last element, repeat.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page