Curve fitting a) define intersect b) fit without pre-defined fittype

조회 수: 2 (최근 30일)
Laura Iten
Laura Iten 2017년 5월 12일
댓글: Laura Iten 2017년 5월 12일
Hey guys
I have some data (let's say X and Y) and I think it fits probably best to a 'power1' fittype. I have used the curve fitting toolbox as well as fitted programmatically of which I prefer the latter (because I have many datasets and I don't particularly like clicking buttons).
Two questions:
a) I know my model has to go through (0,0) and through (1,1). How can I force it?
b) Even though I think it'll be something like y= c*A^z, I would like something like "free fitting" where just the bulk of data is taken into account and fitted. I would like to avoid giving a fittype. Is this possible?

답변 (1개)

Jacob Mevorach
Jacob Mevorach 2017년 5월 12일
If I was going to do this I would try a variety of fits for each I thought might be good and I'd calculate the r^2 value for each and then go with the fit which had the maximum r^2 value.
  댓글 수: 1
Laura Iten
Laura Iten 2017년 5월 12일
I did that. But I wanted to go beyond defining a fittype already. Also, I would've liked to know which points would be considered as outliers under the "free fit" conditions.
Do you happen to have an idea how to solve a)? Fit through 0,0 and 1,1 ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by