Hi
I have time histogram. My time is from 01/01/1962 to 01/01/2016. Hist is giving 10 automatic binning graph. I need hist for every 2 years, 3 years, 4 years... in seperated graph. Such as I did nbins=20. hist(time,nbins). I have got kind of expected result, but not certain. Is there any way to do histogram for every n years(n=2,3,4....).
Thanks!

 채택된 답변

Image Analyst
Image Analyst 2016년 2월 21일

1 개 추천

Use histogram() or histcounts() and supply the "edges" argument. If you have an obsolete version of MATLAB, you can try the old histc() function.

댓글 수: 1

davit petraasya
davit petraasya 2016년 2월 21일
Great help! Thanks Image Analyst. histc() function helped.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

질문:

2016년 2월 21일

댓글:

2016년 2월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by