How to plot this frequency graph?
조회 수: 2 (최근 30일)
이전 댓글 표시
Dear all,
I have runoff and precipitation data (as I attached), how I can achieve such a plot?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/762736/image.jpeg)
I tried this script:
histogram2(precipitation,runoff,'Normalization','count')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/762731/image.jpeg)
But it seems wrong and the range of x and y lines doesn't set between 0 to 1. The name of this plot below is bivariate frequency graph which is a histogram of precipitation and runoff.
Thank you in advance
댓글 수: 2
Ive J
2021년 10월 10일
Do you mean something like this?
pn = normalize(precipitation, 'range');
rn = normalize(runoff, 'range');
histogram2(rn, pn)
채택된 답변
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!