Problem 47538. Summy's even sum
Summy wants to sum the elements of the vector x which are present at even indices. Can you help Summy by making a function which returns the required sum?
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers71
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6386 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15632 Solvers
-
Return the 3n+1 sequence for n
8356 Solvers
-
Create matrix of replicated elements
383 Solvers
-
576 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!