It is known that the intersection points between a line and a polyline can be found using Polyxpoly command in MATLAB.
However, the examples given here involve the polylines that are composed of points, but not real lines. Here, a polyline object is created with the interpolation of space between the points.
What I want to do is to obtain the intersection points between the polyline and line that are defined by line equations, but not from a point to another. 
I want to obtain the coordinates of the intersection points in MATLAB (Denoted with blue circles).