How to include a fixed point in exponential fit?

4 ビュー (過去 30 日間)
Akshayaa Pandiyan
Akshayaa Pandiyan 2019 年 3 月 13 日
コメント済み: Akshayaa Pandiyan 2019 年 3 月 15 日
I am trying to fit my data with fit(x,y, 'exp1') function to get the attenuation of the signal. The first point of my data is crucial and should always be included in the fit. Is there a solution to define this point to be always included during the fit?

採用された回答

Jeff Miller
Jeff Miller 2019 年 3 月 13 日
You can approximate this by using the 'weights' input parameter to fit. Give the first point much higher weight than any of the others, and that point should be fit almost exactly.
  1 件のコメント
Akshayaa Pandiyan
Akshayaa Pandiyan 2019 年 3 月 15 日
Thanks! That helps!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by