How to print the second largest of a group of the numbers
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Example: number : 1 2 3 4 5 6 7 8 9 10
second largest = 9
0 Kommentare
Antworten (2)
Mischa Kim
am 6 Okt. 2014
Rodrigo, you could use
a = [1 2 3 4 5 6 7 8 9 10];
b = max(setxor(a,max(a)));
0 Kommentare
Siehe auch
Kategorien
Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!