Is there a way to do a polynomial fit and an exponential fit on a single plot at two different intervals in the plot?

2 ビュー (過去 30 日間)
For example: I have a plot of a an array containing y and x variables. The graph has three distinct curves from the data. I want to approximate an exponential function for one interval, a polynomial function for the second.
How would I go about doing this?
  1 件のコメント
Rishabh Gupta
Rishabh Gupta 2018 年 9 月 28 日
Do you exactly know the interval for which you need to fit an exponential and the polynomial function?

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

回答 (1 件)

Rishabh Gupta
Rishabh Gupta 2018 年 9 月 28 日
Hi Ken,
If you know the interval for the three distinct curves, then one of the approach would be to divide your data into 3 subsets and fit respective functions to those subsets. Then you can easily plot the fitted functions onto the same plot.
Hope this helps.
  2 件のコメント
Torsten
Torsten 2018 年 9 月 28 日
編集済み: Torsten 2018 年 9 月 28 日
The values at the boundaries must be equal ...
Rishabh Gupta
Rishabh Gupta 2018 年 9 月 28 日
You could try to incorporate the boundary points in both the intervals

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

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by