Problem 44480. The average of the second largest values
Given a matrix, find the average of the second largest values in each row. The same value does not exist on a row.
Example: input x = [1 2 3 4;8 7 6 5;9 0 1 4] >>> output y = (3+7+4) / 3
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers50
Suggested Problems
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
365 Solvers
-
Create an index-powered vector
716 Solvers
-
6812 Solvers
-
452 Solvers
-
Determine whether the input is divisible by 3 as well as 5
87 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!