help with cubic spline interpolation

3 ビュー (過去 30 日間)
Tobias Pekola
Tobias Pekola 2020 年 9 月 29 日
コメント済み: Ameer Hamza 2020 年 9 月 29 日
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 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 9 月 29 日
Can you explain what is not-a-not condition?

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2020 年 9 月 29 日
編集済み: KSSV 2020 年 9 月 29 日
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')

カテゴリ

Help Center および File ExchangeSplines についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by