find a function that approximates a given set of data imposing conditions

조회 수: 1 (최근 30일)
Alessandraro
Alessandraro 2019년 11월 24일
답변: Alex Sha 2019년 11월 25일
Hi,
I am dealing with this issue. I have a data set of points (x,y); I have to fit a function to my data, but I don't have an idea of the family of functions to use. I do know it must be a monotonous and growing function and I must impose these conditions:
  • f(0) = 0;
  • f(Inf)=1;
  • f'(0)=1;
  • f'(Inf)=0
An example could be the function 'f(x)= 1 - exp(-x)', but unfortunately it doesn't fit to my data properly.
Is there a tool in Matlab to find a function to approximate my data imposing the previous conditions?

답변 (1개)

Alex Sha
Alex Sha 2019년 11월 25일
If possible, attach your data please.

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by