Spline Interpolation Code Error
1 次查看(过去 30 天)
显示 更早的评论
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.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!