Counting numbers over a threshold in a row
Show older comments
I have 6 columns of values (about 5200 values in each column). Each column corresponds to a different location (variable). I want to count how many times there are 48 consecutive values at or above 50 in each column. I would like a single number to output for each column indicating the number of instances where a value at or above 50 occurs consecutively for 48 rows or more. Many thanks for you help.
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!