point projection on a vector

17 ビュー (過去 30 日間)
Bruno Goncalves
Bruno Goncalves 2020 年 7 月 25 日
編集済み: Bruno Goncalves 2020 年 7 月 25 日
Hi,
I have a point (Xp,Yp) and a a vector defined by a set of points N, with (Xi,Yi) points where i=1:N.
I want a new point coordinates (Xpn,Ypn) that is the orthogonal projection of (Xp,Yp) on the vector (Xi,Yi).
What is the best and clean way to obtain (Xpn,Ypn)?
I have attached a image as a example.
The line vector (Xi,Yi) is blue.
The point (Xp,Yp) is red.
Best regards.

回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics and Optimization についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by