help with cubic spline interpolation

3 visualizaciones (últimos 30 días)
Tobias Pekola
Tobias Pekola el 29 de Sept. de 2020
Comentada: Ameer Hamza el 29 de Sept. de 2020
Hello, i have these data points and want to do a cubic spline interpolation with a not-a-not contition, But i do not understand how i get matlab to do so, please help.
y=[373,484,635,798,975,1085,1104,996,841,682,523,394,373];
x=[1,32,59,90,120,151,181,212,243,273,304,334,364];
  1 comentario
Ameer Hamza
Ameer Hamza el 29 de Sept. de 2020
Can you explain what is not-a-not condition?

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 29 de Sept. de 2020
Editada: KSSV el 29 de Sept. de 2020
y=[373,484,635,798,975,1085,1104,996,841,682,523,394,373];
x=[1,32,59,90,120,151,181,212,243,273,304,334,364];
yi = spline(x,y,x) ;
plot(x,y,'r',x,yi,'ob')

Categorías

Más información sobre Splines en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by