x0=[0 3 5 7 9 11 12 13 14 15 ]; y0=[0 1.2 1.7 2.0 2.1 2.0 1.8 1.2 1.0 1.6 ]; x=0:0.5:15; y1=lagr1(x0,y0,x); y2=interp1(x0,y0,x…
Cubic Spline 源代码
汇集 Cubic Spline 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
n=11;m=21; x=-5:10/(m-1):5; y=1./(1+x.^2);z=0*x;plot(x,z,x,y),gtext('y=1/(1+x^2)'),pause x0=-5:10/(n-1):5; y0=1./(1+x0.^2); y…
x0=0:pi/30:pi; y0=sin(x0); I=quadspln(x0,y0,0,pi) x0=0:pi/10:pi; y0=sin(x0); I1=trapz(x0,y0) I=quadspln(x0,y0,0,pi) x0=[0…
S 1 /COM,ANSYS RELEASE 8.0 UP20030930 19:47:21 07/06/2005 S 2 /NOPR …
hours=1:12; temps=[5 8 9 15 25 29 31 30 22 25 27 24]; h=1:0.1:12; t=interp1(hours,temps,h,'spline'); plot(hours,temps,'+',h,…
x0=[0 3 5 7 9 11 12 13 14 15 ]; y0=[0 1.2 1.7 2.0 2.1 2.0 1.8 1.2 1.0 1.6 ]; x=0:0.1:15; y1=lagr1(x0,y0,x); y2=interp1(x0,y0,x…
x0=[0 3 5 7 9 11 12 13 14 15 ]; y0=[0 1.2 1.7 2.0 2.1 2.0 1.8 1.2 1.0 1.6 ]; x=0:0.1:15; y1=lagr1(x0,y0,x); y2=interp1(x0,y0,x…
hours=1:12; temps=[5 8 9 15 25 29 31 30 22 25 27 24]; h=1:0.1:12; t=interp1(hours,temps,h,'spline'); plot(hours,temps,'+',h,…
function h=window(N,name,param,param2); %WINDOW Window generation. % H=WINDOW(N,NAME,PARAM,PARAM2) % yields a window of length N w…
clear clear x=-4:4; y=[0 0.15 1.12 2.36 2.36 1.46 0.49 0.06 0]; cs=spline(x,[0 y 0]); xx=linspace(-4,4,101); yy=ppval(cs,xx)…