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

10 Solutions

8 Solvers

Last Solution submitted on Sep 14, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers8

Suggested Problems

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!