Find the sum of the largest two elements in a vector - MATLAB Cody - MATLAB Central

Problem 44303. Find the sum of the largest two elements in a vector

Difficulty:Rate

With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

Solution Stats

60.42% Correct | 39.58% Incorrect
Last Solution submitted on Sep 05, 2025

Problem Comments

Solution Comments

Show comments
AI Is Transforming Engineering Workflows
It’s an honor to deliver the keynote at MATLAB EXPO 2025. I'll...
0
MATLAB EXPO 2025 Registration is Now Open! November 12 – 13, 2025
Registration is now open for MathWorks annual virtual event MATLAB EXPO 2025...
0

Problem Recent Solvers107

Suggested Problems

More from this Author18

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!