Problem 61114. Odd Run Sums
Given a row vector x of integers, find every maximal run of consecutive odd numbers and return a row vector containing the sum of each run in order of appearance.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers1
Suggested Problems
-
1 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!