findRuns.m
Versione 1.1.0.0 (549 Byte) da
Richard Heitz
Returns indices of n consecutive numbers (you specify the number you want)
913 download
Aggiornato
13 feb 2009
Nessuna licenza
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.
Cita come
Richard Heitz (2024). findRuns.m (https://www.mathworks.com/matlabcentral/fileexchange/22972-findruns-m), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2008b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Programming > Classes > Define Classes > Handle Classes >
Scopri di più su Handle Classes in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.