概述
MATLAB综合实验报告MATLAB综合实验报告
综合实验报告
实验目的:学会用MATLAB解决本专业的实际问题。
实验任务:根据已知数据用MATLAB拟合出干涉滤光片的波长与光强的关系曲线。拟合出有无滤光片的曲线
实验数据: 波长与光强
波长/nm光强波长/nm光强波长/nm光强波长/nm光强577.400.1578.803538.1580.201797.1579.601200.1577.544.1578.903364.1580.302231.1579.70776.1577.6157.1579.003075.1580.402646.1579.80371.1577.7332.1579.102673.1580.503006.1579.90160.1577.8667.1579.202131.1580.603272.1582.0048.1577.91072.1579.301569.1580.703430.1582.103.1578.01564.1579.401026.1580.803532.1582.200.1578.12046.1579.50585.1580.903570.1582.300.1578.22497.1579.60306.1581.003500.1582.400.1578.32918.1579.70234.1581.103325.1582.500.1578.43247.1579.80312.1581.203070.1582.600.1578.53463.1579.90579.1581.302744.1582.700.1578.63574.1580.00929.1581.402294.1582.800.1578.73613.1580.101346.1581.501723.1582.900.1根据实验数据编写程序拟合出曲线
程序:clf
x=577.40:0.1:582.90;
y=[0.1,44.1,157.1,332.1,667.1,1072.1,1564.1,2046.1,2497.1,2918.1,3247.1,3463.1,3574.1,3613.1,3538.1,3364.1,3075.1,2673.1,2131.1,1569.1,1026.1,585.1,306.1,234.1,312.1,579.1,929.1,1346.1,1797.1,2231.1,2646.1,3006.1,3272.1,3430.1,3532.1,3570.1,3500.1,3325.1,3070.1,2744.1,2294.1,1723.1,1200.1,776.1,371.1,160.1,48.1,3.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1];
p7=polyfit(x,y,7);
p9=polyfit(x,y,9);
p10=polyfit(x,y,10);
x1=577.40:0.01:582.90;
y7=polyval(p7,x1);
y9=polyval(p9,x1);
y10=polyval(p10,x1);
plot(x,y,'r',x1,y7,'b-.',x1,y9,'g.',x1,y10,'k')
结果:
从这个图课清楚的得到光强与波长的关系。
有无滤光片的曲线
波长/nm光强/无滤光片光强/有滤光片波长/nm光强/无滤光片光强/有滤光片2800.10.14801544.1372.13000.10.15001301.168.132030.10.15201691.10.134089.10.15401694.10.1360187.175.15601675.10.1380326.1197.15801597.10.1400524.1360.16001514.10.1420774.1533.16201369.10.14401119.1711.16401229.10.14601460.1753.16601070.10.1根据实验数据得出两条的比较曲线
程序:clc
clf
x=280:20:660;
y1=[0.1,0.1,30.1,89.1,187.1,326.1,524.1,774.1,1119.1,1460.1,1544.1,1601.1,1691.1,1694.1,1675.1,1597.1,1514.
最后
以上就是喜悦香氛为你收集整理的matlab综合实验研究,MATLAB综合实验报告.doc的全部内容,希望文章能够帮你解决matlab综合实验研究,MATLAB综合实验报告.doc所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复