资源描述:
《数学模型_第五次实验报告》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、实验报告(二)院(系)理学院课程名称:数学模型日期2012年3月7班级A0921学号01实验室文理楼209专业信息与计算科学姓名计算机号12实验名称插值成绩评定所用软件Matlab教师签名实验目的或要求理解插值的概念,掌握插值的命令实验步骤、心得体会实验题目:1.从1点12点的11小时内,每隔1小时测量一次温度,测得的温度的数值依次为:5,8,9,15,25,29,31,30,22,25,27,24.试估计每隔1/10小时的温度值.(1)新建一个M-file(2)输入命令:hours=1:12;temps=[58915252
2、9313022252724];hi=1:0.1:12;ti=interp1(hours,temps,hi,'spline');plot(hours,temps,'+',hi,ti,hours,temps,'r:')xlabel('Hour'),ylabel('DegressCelsius')(3)结果为:温度值表格:55.62426.15456.5996.96597.26367.50027.68397.8237.925688.05448.0978.13618.17988.23648.31418.4218.56558.7558
3、99.30529.673410.10610.60311.16611.79612.49313.25914.0941515.97417.00118.06419.14520.22521.28822.31423.28724.1882525.70926.32126.84727.29827.68328.01428.328.55328.7832929.21429.42529.63429.8430.04330.24230.43830.6330.8173131.17531.33131.4531.51931.52131.44231.26530.
4、97630.563029.29128.4627.54726.58825.62224.68623.81923.05622.4382221.7721.73221.85822.11922.48922.9423.44423.97424.5022525.44625.83526.16826.44626.6726.84126.95827.02327.0372726.91326.77726.59226.35926.0825.75425.38224.96524.504242.已知飞机轮廓线的数据如下表所列,求每改变0.1时的的值。表1轮廓数据
5、线x035791112131415y01.21.72.02.12.01.81.21.01.6输入:x=[035791112131415];y=[01.21.72.02.12.01.81.21.01.6];xi=0:0.1:15;ti=interp1(x,y,xi,'spline');plot(x,y,'+',xi,ti,x,y,'r:')xlabel('x'),ylabel('y')输出:y值表格:00.0498610.0989970.147410.195110.24210.288380.333960.378840.4230
6、30.466540.509360.551510.592980.633790.673940.713420.752260.790450.827990.86490.901180.936830.971851.00631.04011.07321.10581.13781.16921.21.23021.25991.28891.31741.34541.37271.39951.42581.45151.47671.50141.52551.54911.57221.59471.61681.63831.65941.67991.71.71961.738
7、71.75731.77541.7931.81021.82691.8431.85881.8741.88871.9031.91681.93011.9431.95531.96721.97861.989522.012.01952.02852.0372.0452.05252.05952.0662.07192.07732.08222.08652.09022.09332.09592.09792.09942.10022.10042.12.0992.09742.09522.09252.08932.08572.08152.0772.07212.
8、06682.06112.05522.0492.04252.03582.02892.02192.01472.007421.99241.98411.97421.96211.94691.9281.90461.87591.84131.81.75161.6971.63771.57491.50991.