histogram and plot at the same
조회 수: 19 (최근 30일)
이전 댓글 표시
Hello,
Please help. I want to draw a plot of a function (the ones we have when we use plot()) and a histogram (with the bins) in the same graph (superimposed on each other).
Any ideas on how to achieve this?
Thanks
댓글 수: 0
채택된 답변
Sean de Wolski
2015년 1월 13일
histogram(randn(1000,1))
hold on
plot(-6:6,abs(sin(-6:6)*100))
In R2014b. In R2014a and earlier use hist() instead of histogram.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!