How can I write a program for cubic spline?

Hello!
How can I write programs for
  • natural cubic splines
  • periodic cubic splines
  • Hermite cubic splines?
I do not have any data, so am I allowed to just take some data?
I should take xi, i = 0,..., n+1 with
yi, i = 0,..., n+1
and determine the moments Mi

 Respuesta aceptada

madhan ravi
madhan ravi el 20 de Nov. de 2018

0 votos

Read about interp1()

2 comentarios

SaBo
SaBo el 21 de Nov. de 2018
Thank you! As you could think I am very new to matlab but slowly it's getting better!
madhan ravi
madhan ravi el 22 de Nov. de 2018
Anytime :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Preguntada:

el 20 de Nov. de 2018

Comentada:

el 22 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by