MATLAB: How to draw line in mat lab at the edge of the bars in mat Matlab to show the values of these bars

tag question

Best Answer

A = randn(1000,1);
h = hist(A) ;
bar(h)
hold on
plot(1:length(h),h,'r')
Related Question