Problem 44303. Find the sum of the largest two elements in a vector
66.67% Correct | 33.33% Incorrect
Last Solution submitted on Mar 14, 2023
yurenchu on 6 Sep 2017
This would fail when the largest two elements are equal to eachother (for example, when x = [1, 1, 2, 3, 4, 5, 5, 5, 80, 80]).
Erik Luiten on 7 Sep 2017
Yes you are correct, i have adjusted my code in 1264109
Problem Recent Solvers99
Basics: 'Find the eigenvalues of given matrix
The Answer to Life, the Universe, and Everything
Test Problem; Create a 5x5 array containing all ones
More from this Author18
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!