How to smooth this curve so that I can find the sharpest turning point
1 view (last 30 days)
Show older comments
I have a curve plotted below:
I want to find out the sharpest turning point indicated in the figure by locating the maximal second derivative. But since the curve is not smooth, the second derivative has many peaks, even after I filtered the curve. The same is true for calculating curvatures. So I was wondering if I can fit the curve by some "good" smooth curve which has a single peak of the second derivative so that I can easily pick out the sharpest turning point via diff function. But since I'm not very familiar with curve-fitting, I ask here in hope that someone can help. Btw, if you think you have a better idea than the curve-fitting and calculating the the second derivative, you are welcomed to post your (correct) idea here. Thanks a lot.
0 Comments
Accepted Answer
KSSV
on 28 Jun 2016
You can achieve the above task in multiple ways. You may refer the following links.
0 Comments
More Answers (2)
KSSV
on 28 Jun 2016
Other method is go by slope.....calculate the slope..If you have n points you will get (n-1) slopes..pick three consecutive slopes...check the sign of slopes. If the sign of slopes is [-1 +1 -1] or [+1 -1 +1]; it implies there is a turn point. I hope this would be the simplest of all.
0 Comments
See Also
Categories
Find more on Curve Fitting Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!