Find point on a trajectory nearest a point

4 次查看(过去 30 天)
Hello all,
I am trying to the point on a trajectory nearest a point. I have a trajectory called 'trajAP" (it is a a trejectory of euler angles paired with angular velcoity). For each point on trajAP there is a point p1 a certain distance away.
I am trying to find the point on trajAP that is the nearest to point, p1.
Ive tried our a handful of methods but nothing has worked. Any suggestions?
  4 个评论
Matt J
Matt J 2020-6-17
编辑:Matt J 2020-6-17
Well, you need to re-represent the trajectory (and p1) as a series of (x,y) position coordinates first. it doesn't seem to me that you have enough information in trajAP to do so.
KSSV
KSSV 2020-6-18
What p1 has? p1 also the same angle and angular velocity? If so have a look on knnsearch. IF not tell more about p1 or share data.

请先登录,再进行评论。

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by