I have a scatter plot of Y and X, I want to create a bin with the data between the point with the lowest y-value to the (lowest y-value +50) From the plot I want to bin the data from y=147 to y =197. Lastly I want the mean X and Y values for the bin.

댓글 수: 2

per isakson
per isakson 2015년 3월 1일
편집: per isakson 2015년 3월 1일
Do you need to retrieve the data from an axes object or are the data available in variables?
shobhit mehrotra
shobhit mehrotra 2015년 3월 1일
the data is available in variables, this is the just plot of the data

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

 채택된 답변

Greig
Greig 2015년 3월 1일

0 개 추천

It this what you are looking for?
lim = [min(y), min(y) + 50]
ybin = y(y>= lim(1) & y<=lim(2))
xbin = x(y>= lim(1) & y<=lim(2))
ybar = mean(ybin);
xbar = mean(xbin);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

제품

태그

질문:

2015년 3월 1일

답변:

2015년 3월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by