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

 采纳的回答

Read about interp1()

2 个评论

Thank you! As you could think I am very new to matlab but slowly it's getting better!

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Splines 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by