about surface plot and its code

조회 수: 4 (최근 30일)
Pradeepta Sahu
Pradeepta Sahu 2017년 9월 13일
댓글: Walter Roberson 2017년 9월 13일
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
KSSV
KSSV 2017년 9월 13일
Question is not clear.....
Rik
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
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
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.

Walter Roberson
Walter Roberson 2017년 9월 13일
You can post follow-ups here.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by