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.
3 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!