Hi there!
I have two Mathematica arrays: Xval and Yval.
Let's suppose a simple situation:
Xval[1]=1
Xval[2]=3
Xval[3]=5
Yval[1]=10
Yval[2]=20
Yval[3]=30
For a situation like this, where the arrays are small, I could do something like:
Func = Interpolation[{1,10},{3,20},{5,30}]
So there's no problem here. However, let's imagine that both Xval and Yval are arrays of length n which are read from a .txt file. I want to know if it is possible to interpolate Yval using Xval as the domain, without having to write explicitly the points [{1,10}...] by hand.
Cheers, M