I have a two point data set. I created two straight line (poly 3) using inbuilt fit curve fitting. (The points in the image are in straight line, but in my data it is more clustered and random. So the curve fit function is used. Please ignore the points).
Since the line is not created using start and end points but through cuve fit function, I have no idea how to extend the line so that the two lines meet at a common point.
what I'm trying to do.
- Find the extreme points of each line
- Then find the slope and Y intercept for each line
- Find intersection point of two lines
- Draw a polygon passing through 3 points (start point of left line, intersecting point, end point of top line)
for this method I need to find the extreme points of both the lines , which I dont know how. If I get the extreme points, the rest would be pretty straightforward.
Is there any alternate method to directly join the two lines ?
if my method is okay and doable, could some one please tell me how I can get the extreme point of a plotted line?
PS: the lines are created using curve fit function.