• linterp(vx, vy, x)—Returns a linearly interpolated value at x for data vectors vx and vy.
The linterp function performs linear interpolation at a requested point x by calculating the intermediate values between adjacent data points from the line of best fit. For x values outside of the data range, linterp extrapolates a straight line between the first or last two points.
Arguments
• vx is a vector of real data values in ascending order.
• vy is a vector of real or complex data values having the same number of elements as vx.
• x is the value of the independent variable at which to interpolate a result. For best results, x should be in the range encompassed by the values of vx.