Intersection of two vector lines

조회 수: 3 (최근 30일)
Tishan Anantharajah
Tishan Anantharajah 2023년 4월 27일
댓글: Matt J 2023년 4월 27일
How would I go about finding the intersection point of two vector lines in the form:
a = b*t + u
c = d*s + v
where a,b and s is a 3x1 matrix?

채택된 답변

Matt J
Matt J 2023년 4월 27일
편집: Matt J 2023년 4월 27일
where a,b and s is a 3x1 matrix?
I assume you really mean that a,b,u,c,d,v are 3x1 and t,s are scalars.
ts=[b,-d]\( v-u );
intersection=b*ts(1)+u
  댓글 수: 2
Tishan Anantharajah
Tishan Anantharajah 2023년 4월 27일
Thank you so much this worked
Matt J
Matt J 2023년 4월 27일
I'm glad, but please Accept-click the answer to indicate that (and likewise for previous answers you may not have accept-clicked).

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by