findRuns.m
by Richard Heitz
13 Feb 2009
(Updated 13 Feb 2009)
Returns indices of n consecutive numbers (you specify the number you want)
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 13 Feb 2009 |
file name |
|
Contact us at files@mathworks.com