Cubic Splines for Interpolation
9 次查看(过去 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!