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!