Number of people who passes a point

3 次查看(过去 30 天)
I have a data of coordinates of moving people and I'm looking for a way to find the number of people who passes a certain range of (x,y) points for example a line from (-20,-20) to (20,20). The data is always increasing in both directions i.e. x2>x1 and Y2>1.
  2 个评论
KSSV
KSSV 2020-11-2
  1. Get the equation of line using polyfit. Substitute the point on the line.....if it satisfies the point lies on the line.
  2. Get the area, if area is zero, the point lies on the line.
Abdulkarim Almukdad
Hi KSSV thanks for your answer. I didn't understand how this can be done, because I want the points after that line not necessary lies on it, because someone might step further that line, also how should I create the function of the line? should I just assume any values I want, or the values should be selected from the coordinates? moreover, I didn't understand your second point of getting the area.
I have attached a sample of the data, your help is highly appreciated.
Thanks in advance.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by