how to find column index of max value for each row of a matrix 378x5 size?
8 views (last 30 days)
Show older comments
Priscilla Schmitz
on 30 May 2019
Answered: meghannmarie
on 30 May 2019
hi
i have a matrix size 378x5, how do i find the index column of the maximum value of each row?
Thanks
1 Comment
Rik
on 30 May 2019
(I'm on mobile so I can't check)
The second output of max can do this. You may need to use a loop.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!