Problem 60823. Sum of Even Numbers in a Vector
Write a function that takes a vector x as input and returns the sum of all even numbers in x.
Input:  
x = [1, 2, 3, 4, 5, 6]  
Output:  
y = 12  
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers19
Suggested Problems
- 
         Sum of Even Numbers in a Vector 19 Solvers 
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!