Solved
data sets/function
- September 14, 2014
- 1 reply
- 2676 views
Hello,
I have 2 sets of data, X and Y, with the same length.
How can I express one set as a function of the other one: Y(X)
Thank you.
PAYMAN RAJAI wrote:
Thank you it works. There is just one question. Is there any chance that interpolation disturb my original data?
? How could your original data be disturbed? As long as you input an element of vector X, you will receive the exact associated element of vector Y. If you input an x-value inbetween you will get an y-value inbetween. Any interpolation will return vector Y if you feed it with vector X. This is not the case if you use approximation (regressions).
Is "linterp" the best function for this job?
Which job?
You will find quite some other interpolations like various splines (bspline, cspline, pspline. lspline) in Mathcads toolbox. Which one is "the best" depends on your needs.
Every interpolation will map vector X onto vector Y. The diffrences are what the interpolation does with the values inbetween the values in X.
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.