The blue curve is a set of (X,Y) coordinates. Orange segment passes through two of these (X,Y) coordinates (black dots of example image). Now I need a function that, regarding the orange segment, takes x value and get me the correspondent y value of the segment (green relation).
I would avoid matlab real interpolation, and I using mathematic formula. How can I do this? 