怎么用matlab求complete cubic spline interpolation
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/04/29 06:39:24
怎么用matlab求complete cubic spline interpolation
I need help,I want to construct complete cubic spline interpolations for the data set below.
Date:
X=[-2.0,-1.5,-1,-0.5,0.0,0.5,1.0,1.5,2.0];
Y=[0,0,0,0.87,1,0.87,0,0,0];
Graph the data points and the interpolations on a single plot.
This is my project.I have no idea to use Matlab to do it.Please help me.Thank you everyone.
I need help,I want to construct complete cubic spline interpolations for the data set below.
Date:
X=[-2.0,-1.5,-1,-0.5,0.0,0.5,1.0,1.5,2.0];
Y=[0,0,0,0.87,1,0.87,0,0,0];
Graph the data points and the interpolations on a single plot.
This is my project.I have no idea to use Matlab to do it.Please help me.Thank you everyone.
(1)the program code
X=[-2.0,-1.5,-1,-0.5,0.0,0.5,1.0,1.5,2.0];
Y=[0,0,0,0.87,1,0.87,0,0,0];
plot(X,Y,'r*')
hold on
Xx=-2.0:0.05:2.0;
Yy=spline(X,Y,Xx);
plot(Xx,Yy,'k')
xlabel('X');ylabel('Y');
legend('The raw data','The interpolation curve')
(2)the figure
X=[-2.0,-1.5,-1,-0.5,0.0,0.5,1.0,1.5,2.0];
Y=[0,0,0,0.87,1,0.87,0,0,0];
plot(X,Y,'r*')
hold on
Xx=-2.0:0.05:2.0;
Yy=spline(X,Y,Xx);
plot(Xx,Yy,'k')
xlabel('X');ylabel('Y');
legend('The raw data','The interpolation curve')
(2)the figure
matlab中如何求spline的微分
matlab里面的spline
MATLAB中spline是什么意思
matlab 里面spline插值后形成的函数表达式怎么调用
spline
matlab 关于spline函数问题运行出错
matlab中的二维插值griddata,插值方法method中无法识别spline,即样条插值,改怎么处理呢
用matlab怎么求?
急求计算机专业文章翻译Additive interpolation-error expansion
用Matlab怎么求反函数
matlab中用样条插值函数spline得到还原表达式之后,用什么函数可以用此表达式计算还原曲线上任意一点的值
用matlab 怎么求矩阵的行列式