about surface plot and its code

4 visualizaciones (últimos 30 días)
Pradeepta Sahu
Pradeepta Sahu el 13 de Sept. de 2017
Comentada: Walter Roberson el 13 de Sept. de 2017
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 comentarios
KSSV
KSSV el 13 de Sept. de 2017
Question is not clear.....
Rik
Rik el 13 de Sept. de 2017
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).

Iniciar sesión para comentar.

Respuesta aceptada

John D'Errico
John D'Errico el 13 de Sept. de 2017
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 comentarios
Rik
Rik el 13 de Sept. de 2017

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 el 13 de Sept. de 2017
You can post follow-ups here.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by