如何用MATLAB做数据正态分布拟合图像83.0136792575.3419811358.57576.8417452880.192581.9507075571.6979.5868.7556176.09268574.02575.3586792566.757572.177574.5462264279.0344339686.7283018971.4327830272.4170.0650943472.73584.4646226473.4283018
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 11:55:17
如何用MATLAB做数据正态分布拟合图像83.0136792575.3419811358.57576.8417452880.192581.9507075571.6979.5868.7556176.09268574.02575.3586792566.757572.177574.5462264279.0344339686.7283018971.4327830272.4170.0650943472.73584.4646226473.4283018
如何用MATLAB做数据正态分布拟合图像
83.01367925
75.34198113
58.575
76.84174528
80.1925
81.95070755
71.69
79.58
68.755
61
76.092685
74.025
75.35867925
66.7575
72.1775
74.54622642
79.03443396
86.72830189
71.43278302
72.41
70.06509434
72.735
84.46462264
73.42830189
64.47241379
72.50943396
76.4075
77.18207547
81.0171725
82.75113208
85.305
70.655
66.64198113
68.1
84.55400943
82.73
22.05263158
75.42358491
64.91084906
72.81556604
85.07641509
75.985
68.1275
81.39075472
55.645
63.265
75.67264151
62.84339623
71.4009434
74.40330189
68.33018868
80.89622642
79.99
72.20754717
48.20454545
68.54056604
85.095
76.94080189
70.96084906
72.765
78.52754717
75.33
73.145
82.50566038
75.7254717
76.36
79.03962264 例如让面的一组数据如何用MATLAB拟合成正态分布图形
如何用MATLAB做数据正态分布拟合图像83.0136792575.3419811358.57576.8417452880.192581.9507075571.6979.5868.7556176.09268574.02575.3586792566.757572.177574.5462264279.0344339686.7283018971.4327830272.4170.0650943472.73584.4646226473.4283018
data=[83.01367925
75.34198113
58.575
76.84174528
80.1925
81.95070755
71.69
79.58
68.755
61
76.092685
74.025
75.35867925
66.7575
72.1775
74.54622642
79.03443396
86.72830189
71.43278302
72.41
70.06509434
72.735
84.46462264
73.42830189
64.47241379
72.50943396
76.4075
77.18207547
81.0171725
82.75113208
85.305
70.655
66.64198113
68.1
84.55400943
82.73
22.05263158
75.42358491
64.91084906
72.81556604
85.07641509
75.985
68.1275
81.39075472
55.645
63.265
75.67264151
62.84339623
71.4009434
74.40330189
68.33018868
80.89622642
79.99
72.20754717
48.20454545
68.54056604
85.095
76.94080189
70.96084906
72.765
78.52754717
75.33
73.145
82.50566038
75.7254717
76.36
79.03962264];
[mu,sigma]=normfit(data);
[y,x]=hist(data,35);
bar(x,y,'FaceColor','r','EdgeColor','w');box off
xlim([mu-3*sigma,mu+3*sigma])
a2=axes;
ezplot(@(x)normpdf(x,mu,sigma),[mu-3*sigma,mu+3*sigma])
set(a2,'box','off','yaxislocation','right','color','none')
title '频数直方图与正态分布密度函数(拟合)