findRuns.m
版本 1.1.0.0 (549 字节) 作者:
Richard Heitz
Returns indices of n consecutive numbers (you specify the number you want)
913.0 次下载
更新时间
2009/2/13
无许可证
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.
引用格式
Richard Heitz (2024). findRuns.m (https://www.mathworks.com/matlabcentral/fileexchange/22972-findruns-m), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2008b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Programming > Classes > Define Classes > Handle Classes >
在 Help Center 和 MATLAB Answers 中查找有关 Handle Classes 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!