Corrolate points of two parallel vectors

1 回表示 (過去 30 日間)
Sebastian
Sebastian 2017 年 11 月 30 日
Hello there. I have two parallel vectors of xy- coordinates and i try to assign each point of the first vector to the point of the second vector. i think you have to create an orthogonal vector to the first and then just pick the crossing of the orgthogonal and the second vector. i have v1=[x1;y1] and v2=[x2;y2]. i know i have to do this with the scalar product but how to i make the loop over each point?
if true
% code
v1=[x1;y1]
v2=[x2;y2]
for i=1:length(v1)
orth=...dot(...)/dot(...)*v1 %???
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by