The ratinterp command computes a family of pole-free rational functions which interpolate given data. Rational interpolation usually gives better results than the classic polynomial interpolation, which may oscillate highly in some cases.
ratinterp([1,3,5,8],[2,-1,3,4],x,1) |
|
ratinterp([1,3,5,8],[2,-1,3,4],x,2) |
|