Scattered Interpolant in matlab

조회 수: 5 (최근 30일)
SGK
SGK 2024년 2월 14일
편집: Catalytic 2024년 2월 18일
I have matrices xs,ys,z. All the matrices are stored in a workspace and has size 41x50.
I would like to interpolate and store them in 2D lookup table. is it possible to use spline/cubic method in scatteredinterpolant command?
I used in the code but getting these errors.

채택된 답변

Star Strider
Star Strider 2024년 2월 14일
The interpolation Method options are 'linear', 'nearest' and 'natural' (natural neighbor interpolation, giving no details that I can find, only an example).
The ExtrapolationMethod options are 'linear' 'nearest' or 'none'.
  댓글 수: 3
SGK
SGK 2024년 2월 18일
편집: SGK 2024년 2월 18일
out of these methods which can gives a good interpolation results?
I have seen that cubic and spline methods are very reliable since I cant able to use them in scatteredinterpolant what other methods can I use to interpolate these matrices?
Star Strider
Star Strider 2024년 2월 18일
I always experiment with all of them tto see which gives the best result, and again it depends on what I want to do (interpolate in a region, or draw a line on the surface, for example, because scatteredInterpolant computes lines well).
With respect to extrapolation, I again experiment, although in that instance, usually end up using 'nearest'.

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

추가 답변 (2개)

Catalytic
Catalytic 2024년 2월 18일
편집: Catalytic 2024년 2월 18일
No. There is no such thing as spline interpolation or extrapolation when you are dealing with scattered data. It is inherently a gridded data thing.

the cyclist
the cyclist 2024년 2월 14일
편집: the cyclist 2024년 2월 14일
No, according to the documentation for scatteredInterpolant, the available extrapolation methods are 'nearest', 'linear', or 'none'.

카테고리

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