MATLAB正态分布拟合
data = randn(10000,1);sampling = 50;figure[pdf_resi no] = histnorm(data, sampling, ‘plot’);%归一化之后的histset(gca,‘FontSize’,12,‘FontName’, ‘times new roman’);hold onpd = fitdist(data,‘normal’);x_values = linspace(min(data),max(data),sampling);y = pdf(
原创
2021-01-01 19:59:50 ·
10356 阅读 ·
0 评论