fixpt_interp1

Implement 1-D lookup table

Syntax

y = fixpt_interp1(xdata,ydata,x,xdt,xscale,ydt,yscale,rndmeth)

Description

y = fixpt_interp1(xdata,ydata,x,xdt,xscale,ydt,yscale,rndmeth) implements
a one-dimensional lookup table to find output y for
input x. If x falls
between two xdata values (breakpoints), y is
the result of interpolating between the corresponding ydata values.
If x is greater than the maximum value
in xdata, y is
the maximum ydata value. If x is
less than the minimum value in xdata, y is
the minimum ydata value.