实验成功总结.docx

拟合d=300;t=[0.25 0.5 1 1.5 2 3 4 6 8];c=[19.21 18.15 15.36 14.10 12.89 9.32 7.45 5.24 3.01];y=log(c);a=polyfit(t,y,1)k=-a(1)v=d/exp(a(2))b=polyval(a,t)一维插值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,t,hours,temps,r:)xlabel(Hour),ylabel(Degrees Celsius)二维插值x=1:5;y=1:3;z=[82 81 80 82 84;79 63 61 65 81;84 84 82 85 86];mesh(x,y,z)xi=1:0.1:5;yi=1:0.1:3;zi=interp2(x,y,z,xi,yi,cubic);mesh(xi,yi,zi)二维插值x=[12001600200024002800320036004000];y=[1200160020002400280032003600];h=[1480 1500 1550 15101200 980;1501 1550 1600 15

文档评论(0)

1亿VIP精品文档

相关文档