File Exchange

image thumbnail

Knee Point

version (3.13 KB) by Dmitry Kaplan
Finds a knee point of a curve


Updated 16 Feb 2012

View Version History

View License

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.

Cite As

Dmitry Kaplan (2021). Knee Point (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (15)

Alberto Mora

Moh. Saadat

Ben Oeveren

Works great.
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.


Knut Andre Skaug

Really good job on developing this function!

yuri antonacci

vivian wu





Zaid Assaf

Does this calculate the first knee in the curve or the most significant one?

Wenlong Wu


Chang hsiung

works perfectly

Mohammad Farshchin


Does exactly as promised.

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!