Suppose I have a matrix m:
m = [7;1;4;4;12;2;6;10;2];
I want to find first 3 maximum in matrix m, means like:
n = [7;12;10]; % sorting is not issue
arraymatrixmatrix manipulationmaximumreshape
m = [7;1;4;4;12;2;6;10;2];
n = [7;12;10]; % sorting is not issue
Best Answer