MATLAB: 1d scattered data interpolation

interpolation 1d data scattered

Hey everybody,
Matlab is becoming my arch enemy and I need some brave soldier to help me with my next battle, I have the following data:
x=[23 312 6546] y=[3 43 342]
So I can make a scattered 'graph' of points (x,y)
Now I want to linearly interpolate for example in the point, say (6,*) how can I do this? I used already 'griddedInterpolant' and other options!
Thank you very much in advance,
James

Best Answer

interp1(x, y, 6)