Hello. How algorithm I can use for detect the start point of the fast increasing of my data and the end of this procces?
Show older comments
My data corrupted by some noise, I use the diff function for indicate the start point(labelled by red point on the figure), but find it only with large delay and don't know how to indicate correctly the end of increase (labelled by vertical line on the figure).

Answers (1)
Walter Roberson
on 9 Dec 2015
dd = diff(data);
mask = abs(dd) > SomeThreshold;
find(mask, 1, 'first')
find(mask, 1, 'last')
1 Comment
Zak Kankin
on 9 Dec 2015
Categories
Find more on Logical 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!