findRuns.m

バージョン 1.1.0.0 (549 Bytes) 作成者: Richard Heitz
Returns indices of n consecutive numbers (you specify the number you want)
ダウンロード: 913
更新 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
カテゴリ
Help Center および MATLAB AnswersHandle Classes についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

file name

1.0.0.0