about surface plot and its code
조회 수: 4 (최근 30일)
이전 댓글 표시
I have plotted a surface using 3 variables from excel data and obtained a surface plot. How can I find a code for the generation of a dependent variable when i have two independent variables.
댓글 수: 2
Rik
2017년 9월 13일
It sounds to me like you have a 3D point cloud in an Excel file and would like to fit a function Z=f(X,Y). If this is the case, it is very difficult (if not impossible) to provide a general solution. You can use griddata if the points you want to interpolate are within your data range. If you want to extrapolate, things are more difficult, as some releases will return NaN values (which is badly documented behavior).
채택된 답변
John D'Errico
2017년 9월 13일
So you have generated a surface plot, thus a surface of the form z(x,y).
Now you want to find some simple "function" that can produce a value of z, for ANY intermediate values of x and y?
This is typically called surface fitting, although interpolation is another approach that can be employed. So you might use tools from the curve fitting toolbox, or you might choose to try tools like interp2 or scatteredInterpolant.
Exactly which tool you might use would depend upon the surface itself.
댓글 수: 3
Rik
2017년 9월 13일
He enable contacting him on his profile (just click on his name to get there), but please don't. Helping on this forum is a hobby for most of us, answering e-mail is work. I you post your follow-up here, he (or anyone) can get to your question when we have time. Direct, personal contact is generally not a good idea for things like this, that's what you have teachers, offline friends and consultants for.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!