Get equation of the surface from curve fitting
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I have a variable A that is depedent on two other variables N and phi.
I would like to get a mathematical function that describes the surface of the 3D space, so I can, given a N and phi, get a value for A.
From here there's any way to get the surface function?
If not, which other method can I use to get a function that describes the surface (can be without the toolboox)?
Thanks.
댓글 수: 4
Cris LaPierre
2024년 2월 6일
편집: Cris LaPierre
2024년 2월 6일
In curve fitting, you need to supply the equation. The fitting is accomplished by adjusting the coefficients of the equation to minimize error. Without the equation, you can't curve fit.
This looks like a response surface model. If there is not already an equation used by others in this space, you might consider looking into adapting the greco, minto, or hierarchy model for your use case.
Dyuman Joshi
2024년 2월 6일
편집: Dyuman Joshi
2024년 2월 6일
How did you get the surface you showed?
"I would like to get a mathematical function that describes the surface of the 3D space, so I can, given a N and phi, get a value for A."
"If not, which other method can I use to get a function that describes the surface (can be without the toolboox)?"
Other contributers might have a better idea.
답변 (2개)
Catalytic
2024년 2월 6일
I would like to get a mathematical function that describes the surface of the 3D space, so I can, given a N and phi, get a value for A.
Just use interp2 -
A=interp2(NData,phiData, N,phi)
댓글 수: 3
Matt J
2024년 2월 6일
I would like the equation in is mathematical form so that I'm no depended on MatLab
How will you do the mathematical operations needed to evaluate the equation at different (N,phi)? If you'll be doing that with alternative software, the software can probably do interpolation as well. There's no need to go through Matlab at all.
Joe Vinciguerra
2024년 2월 6일
편집: Walter Roberson
2024년 2월 6일
To my knowledge you can't extract fit parameters from nonparametric fitting methods such as Lowess ( https://www.mathworks.com/help/curvefit/nonparametric-fitting.html )
If you want to extract the equation, you need to define an equation; instead of using Lowess, try Polynomial or Custom Equation ( https://www.mathworks.com/help/curvefit/fit.html )
댓글 수: 0
참고 항목
카테고리
Help Center 및 File 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!