findRuns.m

Version 1.1.0.0 (549 Bytes) von Richard Heitz
Returns indices of n consecutive numbers (you specify the number you want)
913 Downloads
Aktualisiert 13. Feb 2009

Keine Lizenz

Accepts: a vector of numbers

Returns: the indices of n consecutive numbers of your specification

For instance, if you want to find the first instance of 10 consecutive 1's in a vector,

x = findRuns(vector,10,1)

Code may not be pretty, but it works and is quite fast.

Zitieren als

Richard Heitz (2024). findRuns.m (https://www.mathworks.com/matlabcentral/fileexchange/22972-findruns-m), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2008b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Handle Classes finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.1.0.0

file name

1.0.0.0