When the variable starts incrementing above a threshold, that index is to be determined and also when the same variable starts decrementing below a certain threshold, the index is to be determined.
MATLAB: Determine the start and end of a vector.
decreasesincreasesindexthreshold
Best Answer