I'm pretty new with Matlab and learning a lot of scientific computing. I've been instructed to write a function with the following parameters...
function s = cubicinterp(x,y,z)
The function will take data points in arrays x and y and will return an arrays
containing the values of cubic spline interpolant evaluated at all of the points in the given array z.
I have absolutely no idea how to start this. I'm kind of familiar with how cubic interpolation and splines work but this is on a whole other level? Can anyone help me out or get me pointed in the right direction? This is starting to give me a headache.

回答 (1 件)

Torsten
Torsten 2018 年 3 月 15 日

0 投票

help interp1
with the "spline" option for interpolation.
Best wishes
Torsten.

カテゴリ

ヘルプ センター および File ExchangeInterpolation についてさらに検索

質問済み:

2018 年 3 月 15 日

回答済み:

2018 年 3 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by