How to adapt interpolated 3D surfaces to the boundary of 2D data ?

1 visualización (últimos 30 días)
Rosanna
Rosanna el 24 de Ag. de 2017
Comentada: Rosanna el 25 de Ag. de 2017
The MatLab FIT function sf=fit([x y],z); plot(sf,[x y],z) is very useful for estimating 3D surfaces. However, in the case of sparse data and polynomial fitting, It generates interpolates that are unsuitable outside the 2D data boundary. My question is "how to trim (cut) the parts of surface that are outside the 2D boundary". Here, an example of unsuitable border fitting ...

Respuestas (1)

KSSV
KSSV el 24 de Ag. de 2017
doc griddata , scatteredinterpolant
  2 comentarios
Rosanna
Rosanna el 24 de Ag. de 2017
I would like solve the problem with the output of the FIT function (which has much more estimation options). I also tried to use k=boundary(x,y) and plot(sf(k),[x(k) y(k)],z(k)) ... but It does not work
Rosanna
Rosanna el 25 de Ag. de 2017
Apart from the fact that "scatteredInterpolant" does not perform surface trimming outside of the data boundary ... rather, its older version "TriScatterInterp" (which will be dismissed by Matlab) does perform trimming ... hence, Why worsening this function?

Iniciar sesión para comentar.

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by