matlab histfit(data,nbins,dist)直方图拟合
rng default; % For reproducibility r = normrnd(10,1,100,1); figure histfit(r) rng default; % For reproducibility r = betarnd(3,10,100,1); figure histfit(r,10,'beta')
快去成为你想要的样子!
rng default; % For reproducibility r = normrnd(10,1,100,1); figure histfit(r) rng default; % For reproducibility r = betarnd(3,10,100,1); figure histfit(r,10,'beta')