How to get equation of surface ?

조회 수: 13 (최근 30일)
Susmit Kumar Mishra
Susmit Kumar Mishra 2020년 6월 12일
댓글: Ankit Pramanik 2021년 3월 17일
Curve fitting toolbox provides various methods for surface fitting.
Of all the methods only polynomial fit gives the equation (as a function of two variables) and custom eqn (of course).
Is there any method by which we can extract or get the equation for the surface.

채택된 답변

John D'Errico
John D'Errico 2020년 6월 12일
편집: John D'Errico 2020년 6월 12일
No. Not really. You can never know the true, underlying functional form for any list of scattered points, since there are infintiely many surfaces that will pass through any set of points. You can try using things like polynomial fits, which sadly, tend not to do very well. Polynomials are great tools in theory. and for low order approximations. But to generate a fully general surface model over a wide enough region, they tend to be poor. They are frequently used due to their simplcity. Everyone knows what a Taylor series, is, so they should be good, right? They are over-abused far more often than well used. (And I'm the person who posted polyfitn on the file exchange.)
You don't suppy the data, so I can go into too much depth here. It is scattered, but seemingly not very noisy, so an option is a tool like scatteredInterpolant or griddata.
Or, if you want a gridded surface, that can then be evaluated using interpolation like interp2, or plotted using contour or surf, use my gridfit, found on the file exchange.
It won't give you a clean functional form you can write down on paper. As I said, nothing will do that. But it will extrapolate moderately well into the corners, and you can use it to predict any point, using interp2.
As I said, lacking your data, I cannot do much more here. Post it in a comment if you want me to look at it.
  댓글 수: 2
Susmit Kumar Mishra
Susmit Kumar Mishra 2020년 6월 13일
Yes you are right, we should not be completely dependent on matlab to provide us a ideal function.
After quite an observation turns out it can be very nicely fitted using the logistic function as and doing some interpolation. So more important is to use the physics of the data rather than simply using a toolbox.So yeah I got an function which is way better than any direct methods in the toolbox.
Thanks for sharing whatever you knew! kudos
Ankit Pramanik
Ankit Pramanik 2021년 3월 17일
Hi Susmit, Can you elaborate please, how did you finnaly derive the equation for the surface? I am facing same problem. I found that MATLAB curve fitting toolbox is not doing great job.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by