matlab综合实验研究,MATLAB综合实验报告.doc
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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 理财有哪些风险
- 下一篇: 爱又米可以协商还本金吗