How does the 'cubic' method for griddedInterpolant work?
조회 수: 13 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2017년 7월 10일
편집: MathWorks Support Team
2024년 9월 13일
I would like more more information on the algorithm behind the 'cubic' interpolation used in the 'griddedInterpolant' function. I would also like to know whether it's possible to supply my own gradients to the function?
채택된 답변
MathWorks Support Team
2024년 9월 13일
편집: MathWorks Support Team
2024년 9월 13일
The ‘cubic’ method in 'griddedInterpolant' is the same as ‘v5cubic’ in 'interp1':
In addition to this documentation, there is a brief explanation of 'v5cubic' on Cleve's blog (under 'Interp1'):
The 'cubic' method of 'griddedInterpolant' is a local C1 piecewise cubic Hermite interpolation method where the slope at a grid point x(n) is the mean of neighboring values y(n-1) and y(n+1).
This method does not support user-defined derivatives and requires the abscissa x to be equally spaced.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!