Problem 61096. Don't Sum a Five

Create a function that sums the first and last element of a muti-element vector unless the value of one of the elements is 5. Do not sum any fives.

Solution Stats

47.76% Correct | 52.24% Incorrect
Last Solution submitted on Jan 27, 2026

Solution Comments

Show comments

Problem Recent Solvers178

Suggested Problems

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!