필터 지우기
필터 지우기

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

조회 수: 1 (최근 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일
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.

카테고리

Help CenterFile Exchange에서 Get 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