- a constant value,
- to use either spline or makima interpolation,
- some other interpolation method?
interpolation surface no mesh
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Federico Maglione
el 4 de Oct. de 2019
Respondida: Naveen Venkata Krishnan
el 9 de Oct. de 2019
Hi all,
I am not very familiar with surfaces and I am having some problems with the built-in functions to interpolate/extrapolate over a surface.
My data is in the form
- X vector of lenght a
- Y vector of length b
- Z matrix of size axb
X and Y do not have the same length (a~=b). I have attached an example of data
In order to interpolate over the surface and extrapolate outside the data points, which function should I use? griddata(x,y,v,xq,yq)? interp2(X,Y,V,Xq,Yq)? scatteredInterpolant(x,y,v)?
Also, could someone explain me in which format X and Y should be inputted given the selected function?
Thank you.
2 comentarios
Stephen23
el 4 de Oct. de 2019
Editada: Stephen23
el 4 de Oct. de 2019
"which function should I use?"
That partly depends on how you want to extrapolate: do you want:
If you want either 1. or 2. then you can simply use interp2 with your already gridded data.
You also did not explain the output data structure: should this also be gridded data, or do you want to interpolate at points that are not placed on a grid?
Respuestas (1)
Naveen Venkata Krishnan
el 9 de Oct. de 2019
Hello,
I think you can use interp2 function
interp2(X,Y,Z,xq,yq) %interp2(X,Y,Z,0.5,0.8)
Where xq,yq are the query points where the values need to be calculated
0 comentarios
Ver también
Categorías
Más información sobre Interpolation 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!