Question: 1- Write a MATLAB function that takes coordinates of four points as inputs and returns the coordinates of intersection of the line passing through points

 1- Write a MATLAB function that takes coordinates of four points

1- Write a MATLAB function that takes coordinates of four points as inputs and returns the coordinates of intersection of the line passing through points 1 and 2 and the line passing through points 3 and 4. For function name and input arguments, use: P line_int(P1, P2, P3, P4) The function should be able to handle row or column vector entries. This function will use a sub-function called line_ eq. This sub-function takes coordinates of two points as inputs and returns m and b such that y mz +b represents the equation of the line passing through these points. For sub-function name and input arguments, use: [m, b] -line_eq(PA, PB)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!