MATLAB Answers

Louis
0

The use of Interp1

Asked by Louis
on 20 Apr 2013

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

  0 Comments

Products

No products are associated with this question.

1 Answer

Answer by the cyclist
on 20 Apr 2013
Edited by the cyclist
on 20 Apr 2013
 Accepted 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

  1 Comment

Louis
on 21 Apr 2013

Thanks


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!