MATLAB: How to plot distribution curve of multiple data

curve fittingfithistogramplot

Best Answer

x = [-3:.1:3];
y = normpdf(x,0,1);
y2 = normpdf(x,0,0.5);
plot(x,y,x,y2)
More info:https://es.mathworks.com/help/stats/normal-distribution.html