2

Anyone know where i find the Hermite interpolation algorithm in MATLAB. Which Hermite interpolation algorithm solve this?

I need to calculate a polynom. Example (just example):

x=[1,2,3];

y=[0.5,1,12]

y'=[1,0.2,0.9]

y''=[0.1,0.6,0.8]

x2=[1,1.5,2,2.5,3,3.5];

polynom=hermit_interpolation(x,y,y',y'',x2); % i need the polynom to

y2=polyval(polynom,x2);

plot(x2,y2);

Thanks for any answers.

hippietrail
  • 15,848
  • 18
  • 99
  • 158
user52376
  • 27
  • 1
  • 5

1 Answers1

1

The function is pchip(), which is documented nicely with examples at: http://www.mathworks.com/help/techdoc/ref/pchip.html.

John Colby
  • 22,169
  • 4
  • 57
  • 69