fitting straight line to part of data and extrapolate to x-axis at y = zero

20 ビュー (過去 30 日間)
Hazem Mohammed
Hazem Mohammed 2021 年 7 月 18 日
コメント済み: Hazem Mohamed 2021 年 7 月 19 日
please I want syntax to fit straight line on part of data points which lay on a straight in this graph (I point red circle on this data) , and then extraplotate to X-axis at y=zero in order to calculate X Value at Y=ZERO

採用された回答

Image Analyst
Image Analyst 2021 年 7 月 18 日
If you don't know where the knee/kink/corner of your data is, then you can use a piecewise linear fit to fit the left and right portion to a line. The attached demo will figure out where that knee point is and give you the equation for each line.
  11 件のコメント
Image Analyst
Image Analyst 2021 年 7 月 19 日
See attached.
Hazem Mohamed
Hazem Mohamed 2021 年 7 月 19 日
Thanks so much

サインインしてコメントする。

その他の回答 (1 件)

Matt J
Matt J 2021 年 7 月 18 日
編集済み: Matt J 2021 年 7 月 18 日
region=(y<0.01);
p=polyfit( x(region),y(region) ,1);
xroot= roots(p) % the extrapolated root

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by