User`s guide

Mathematics
7-11
Interpolation and Computational Geometry Functionality Being Removed
or Changed
Functionality What Happens
When You
Use This
Functionality
Use This Instead Compatibility Considerations
interp1q Still Runs interp1 Replace all instances of
interp1q with interp1.
interp1(...,
'cubic')
Still Runs interp1(..., 'pchip') Replace all instances of
interp1(..., 'cubic')
with interp1(...,
'pchip').
Passing nonuniformly
spaced points or grid to:
interp1(..., 'v5cubic')
interp2(..., 'cubic')
interp3(..., 'cubic')
interpn(..., 'cubic')
Warns
interp1(..., 'spline')
interp2(..., 'spline')
interp3(..., 'spline')
interpn(..., 'spline')
In previous releases,
interp1, interp2, interp3,
and interpn silently
changed the 'v5cubic'
and 'cubic' methods
to 'spline' when the
sample data was not
uniformly spaced. Now,
a warning is issued if the
uniformity conditions are
not honored. To avoid the
warning message, change
any instances that call
for'v5cubic' or 'cubic'
to the 'spline' method.
Passing the 'pp'
flag to interp1. For
example:
pp = interp1(x, v,
'linear', 'pp');
vq = ppval(pp,
xq);
Still Runs Use griddedInterpolant
to create an interpolating
function that is efficient
to evaluate in a repeated
manner.
Replace all instances
of interp1(...,
'pp') with
griddedInterpolant.
For example:
F =
griddedInterpolant(x,
v, 'linear');
vq = F(xq);