Finds a location of "knee" of a curve. Provides a consistent and mathematically justifiable answer when there is no obvious location along the curve where the curve "turns". The function uses as a definition of a "knee" the point where the curve is best approximated by a pair of lines.
Dmitry Kaplan (2021). Knee Point (https://www.mathworks.com/matlabcentral/fileexchange/35094-knee-point), MATLAB Central File Exchange. Retrieved .
Alternatively, you might want to check findchangepts(y,'Statistic','linear'). It will provide the same/ nearly the same results.
But this submission is more transparent which is convenient if you wish to make any modifications.
Really good job on developing this function!
Does this calculate the first knee in the curve or the most significant one?
Does exactly as promised.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!