Interpolation method (spline)

조회 수: 3 (최근 30일)
heidi pham
heidi pham 2019년 1월 30일
답변: Star Strider 2019년 1월 30일
Hello,
I am learning about interpolation.
In this link https://www.mathworks.com/help/matlab/ref/interp1.html, I see that the code to do interpolation is as follows:
vq = interp1(x,v,xq,method) specifies an alternative interpolation method: 'linear', 'nearest', 'next', 'previous', 'pchip', 'cubic', 'v5cubic', 'makima', or 'spline'. The default method is 'linear'.
I am wonder what is the "spline" method means? Is it the same as cubic?
Thanks,

채택된 답변

Star Strider
Star Strider 2019년 1월 30일
From the documentation:
'spline':
‘Spline interpolation using not-a-knot end conditions. The interpolated value at a query point is based on a cubic interpolation of the values at neighboring grid points in each respective dimension.’
It does not appear to be the same as 'cubic'. According to the documentation, 'cubic' is currently the same as 'pchip'.

추가 답변 (0개)

카테고리

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