2D XY plot with unequal bin widths

조회 수: 1 (최근 30일)
Subha Bose
Subha Bose 2018년 9월 10일
댓글: Walter Roberson 2018년 9월 10일
I have two variables, x(23520x1) and y (68284x1), that I need to fit using the curve fitting tool. 'y' ranges from 0.02 to 0.07
(Fig: Histo1), while 'x' ranges from 20 to 40. I need to bin the values of y in such a way that the denser regions are in a particular bin while the relatively less dense regions are in a different bin (i.e., bins with unequal widths). I have used 'histcounts' which plotted x and y with equally spaced intervals.
Please help. Thanks!
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 9월 10일
histcounts can accept bin edges or bin centers.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by