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

2 Solutions

1 Solvers

Last Solution submitted on Dec 08, 2025

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers1

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!