Cubic Splines for Interpolation
조회 수: 3 (최근 30일)
이전 댓글 표시
Given an array of data T.
I have one missing element which I would like to use interpolation to find.
How do I use cubic splines to interpolate this element?
댓글 수: 0
답변 (3개)
madhan ravi
2018년 10월 13일
편집: madhan ravi
2018년 10월 13일
댓글 수: 1
madhan ravi
2018년 10월 13일
What code do I used to plot and produce cubic spline ?
Bruno Luong
2018년 10월 13일
% fake data
x = sort(rand(1,5))
y = rand(size(x))
xmissing = linspace(0,1,1000); % put here coordinates of pts to be computed
ycomplete = interp1(x,y,xmissing,'spline');
plot(x,y,'or',xmissing,ycomplete,'-')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Splines에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!