全文预览

《科学与工程计算课程设计》报告书-数值插值与拟合

上传者:随心@流浪 |  格式:doc  |  页数:12 |  大小:0KB

文档介绍
得到船要避免进入的区域,x=[129.0140.0103.588.0185.5195.0105.5157.5107.577.081.0162.0162.0117.5]y=[7.5141.523.0147.022.5137.585.5-6.5-81.03.056.5-66.584.0-33.5]z=[48686889988949]xi=linspace(min(x),max(x),40);yi=linspace(min(y),max(y),40);[XI,YI]=meshgrid(xi,yi);[XI,YI,ZI]=griddata(x,y,z,XI,YI,’cubic’);mesh(XI,YI,ZI);xlabel(‘X’);ylabel(‘Y’);zlabel(‘Depth’);figure;[c,h]=contour(XI,YI,ZI);clabel(c,h);xlabel(‘X’);ylabel(‘Y’); 运行结果知等高线图中水深浅于5英尺的区域,船要避免进入。拟合用切削机床进行金属品加工时,为了适当地调整机床,需要测定刀具的磨损速度.在一定的时间测量刀具的厚度,得数据如表所示:切削时间t/h012345678刀具厚度y/cm30.029.128.428.128.027.727.527.227.0切削时间t/h910111213141516刀具厚度y/cm26.826.526.326.125.725.324.824.0解描出散点图t=[0:1:16]y=[30.029.128.428.128.027.727.527.227.026.826.526.326.125.725.324.824.0]plot(t,y,’*’)a=polyfit(t,y,1)a=-0.301229.3804holdony1=-0.3012*t+29.3804plot(t,y1),holdoff

收藏

分享

举报
下载此文档