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

1 view (last 30 days)

Accepted Answer

KSSV
KSSV on 25 Sep 2017
A = randn(1000,1);
h = hist(A) ;
bar(h)
hold on
plot(1:length(h),h,'r')

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!