Cubic Splines for Interpolation
Mostra commenti meno recenti
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?
Risposte (3)
madhan ravi
il 13 Ott 2018
Modificato: madhan ravi
il 13 Ott 2018
0 voti
1 Commento
madhan ravi
il 13 Ott 2018
What code do I used to plot and produce cubic spline ?
Anon
il 13 Ott 2018
0 voti
Bruno Luong
il 13 Ott 2018
% 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,'-')
Categorie
Scopri di più su Splines in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!