help with cubic spline interpolation

조회 수: 13 (최근 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 CenterFile Exchange에서 Splines에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by