How do I group data in a 2d-array?

조회 수: 1 (최근 30일)
Stefani
Stefani 2018년 5월 30일
I have several equally sized rows of data, like "values1", "values2" etc., including two-dimensional positions, "x_pos", and "y_pos". I can plot the data in a three-dimensional diagram using e.g. scatter3, or divide the number of values in bins with defined bin edges using histogram2, which is great.
However, I would like to process the data in each bin created by histogram2 so that I get the mean of all "values1" that have "x_pos" and "y_pos" within each bin, and present this in a 3d-graph with the bins as x-y (similar to histogram2) and the mean of values1 as z. How do I do this?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by