필터 지우기
필터 지우기

Computing point density in 1mx1m box placed across the graph

조회 수: 2 (최근 30일)
Adil Ali
Adil Ali 2019년 11월 14일
댓글: Adam Danz 2019년 11월 14일
I am trying to build a tool where I have plotted 2D points in a graph using
scatter(X,Y,ptSz,'r','filled');
I would like to examine the spread of points over the 2D area by placing 1mx1m box across the acrea and computing the number of points in each box. I would like to know which box has least and most amount of points. I would also like to compute the average number of points in the boxes.
Eventually it would be effective to color map the boxes, representing the density of points.
  댓글 수: 2
darova
darova 2019년 11월 14일
What about for loop? Do you have some attempts?
Adam Danz
Adam Danz 2019년 11월 14일
histcounts2() does that.
It counts the density of (x,y) coordinates within each bin that you specify.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by