怎么用matlab求complete cubic spline interpolationI 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

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 23:06:43
怎么用matlab求complete cubic spline interpolationI 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
xSn@QQQ\k׮ĽP !DUֻx[gw7M qĉʑA7X Uy3y~3듛w}%55-ogjk4lU D`UMP $" kJFS5͊GS!pj(hZSjp8-#?؇wZZ Yqnc ZY-P;l\6}{1%p t1\];e` tLOnR܂n%2AEvbZN6`W5R wIEl }2r@vХQV`ͼO|`[%׸@Īе/6׸q9%bjz bVӶ-՛mXWA@JJ%|۽ VS4 yA+HbexesE$J

怎么用matlab求complete cubic spline interpolationI 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
怎么用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.

怎么用matlab求complete cubic spline interpolationI 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
(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