I have got an arry with 151937×2 double wicht discribes a Curve.
I am trying to find the x-Value to the matching y- Value for example:
data=[1 2, 2 3, 3 3, 4 5, 7 9]
I have tryed it with:
interp1(data(:,1), data(:,2),y-Value ,'PCHIP')
But the function returns the according y-Value, logically. So I tryed to swap x and y datas. The Problem is that the y-Values arent unique.
I hope someone can help me.
Best Answer