Consecutive Ones

Version 1.0.0.0 (1.23 KB) by Shreyes
Finds the number of consecutive ones in a binary signal. Returns the starting and ending points
336 Downloads
Updated 4 Feb 2012

View License

Finds the number of consecutive ones in a binary signal. Returns the starting and ending points of the consecutive set and also the count. Since it does not use any for loop. It is pretty fast

Cite As

Shreyes (2024). Consecutive Ones (https://www.mathworks.com/matlabcentral/fileexchange/34914-consecutive-ones), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0