Spline Interpolation Code Error
Show older comments
Does anybody know why this code isn't running?
x = -4:4;
y = [0 .15 1.12 2.36 2.36 1.46 .49 .06 0];
cs = spline(x,y);
xx = linspace(-4,4,101);
yy = ppval(cs,xx);
plot(x,y,'o',xx,yy,'-');
I can't figure it out! Thanks.
Answers (0)
Categories
Find more on Splines in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!