find sequences

版本 1.0.0.0 (1.3 KB) 作者: Maxim Vedenyov
Finds sequences of repeated elements in array
201.0 次下载
更新时间 2011/11/1

查看许可证

http://simulations.narod.ru/
[i1a i2a]=find_sequences(b,n)
b is 1d array
n is number
finds sequences b==n and return indexes to i1a i2a
all elements b(i1a(i):i2a(i))==n
example:
[i1a i2a]=find_sequences([1 2 2 1 1 1 2 2 2],2)
i1a = 2 7
i2a = 3 9

引用格式

Maxim Vedenyov (2024). find sequences (https://www.mathworks.com/matlabcentral/fileexchange/33554-find-sequences), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Numeric Types 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0