I have a vector
M = [3,3,5,7,8,8,9,7,4,3,2,1,7,6,5,2,2,2];
I want to find at least 5 consecutive values which are above the threshold, which is 4. So the vector will be
N = [5,7,8,8,9,7]
Could anyone help me with this? Thanks.
consecutive threshold
M = [3,3,5,7,8,8,9,7,4,3,2,1,7,6,5,2,2,2];
N = [5,7,8,8,9,7]
Best Answer