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

조회 수: 1 (최근 30일)
Rosanna
Rosanna 2017년 8월 24일
댓글: Rosanna 2017년 8월 25일
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 ...

답변 (1개)

KSSV
KSSV 2017년 8월 24일
doc griddata , scatteredinterpolant
  댓글 수: 2
Rosanna
Rosanna 2017년 8월 24일
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 2017년 8월 25일
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?

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

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by