Cody

Problem 45484. Finding sum of even numbers in a vector.

Solution 2890739

Submitted on 29 Aug 2020 by Rafael S.T. Vieira
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [1 4 3 8]; y_correct = 12; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = [78 1 7]; y_correct = 78; assert(isequal(your_fcn_name(x),y_correct))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!