Hi, I can't seem to find a solution to this but it's a pretty simple problem. Say I have a matrix:
M = [10 9 11 7 8; 10 9 8 7 6; 9 6 7 8 5]
What I want to do is to somehow extract the row vector which holds the largest sequence. I have tried the max() function but it just doesn't retain the individual rows. It is important that it returns a specific row vector from M.
The rows won't always necessarily be sequential like this, so I cannot just use the row that sums to the largest value either.
Thanks
Best Answer