How to find a point along a line a certain distance away from another point

23 views (last 30 days)
Hi,
I have a line between two points : P1 = (x1,y1) and P2= (x2,y2). I have linear function equation : y = ax + b I want to extend a line a distance about 10 from P1 and P2 (in each direction left and right -) I need to find new points P3 and P4 on this line. I don"t have any idea how to move point a distance on the line ?
I would be appreciate for any help please.
  1 Comment
Adam
Adam on 2 Feb 2017
Sounds like a question you should work out on paper before you do it in Matlab if you aren't familiar with the maths itself.

Sign in to comment.

Accepted Answer

KSSV
KSSV on 2 Feb 2017

More Answers (0)

Categories

Find more on Mathematics and Optimization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!