MATLAB: The use of Interp1

extrapolationinterpolation

Wondering what method is used if the interp1 routine is defined as:
interp1(x,y,z,[],'extrap')
Which interpolation/extrapolation methods are implied in this command?
Thanks,
Louis

Best Answer

If method is input as empty, then it is set to linear inside interp1().
It is straightforward to see this if you
>> edit interp1
Related Question