Why does cscvn of matlab have 4*2*(n-1) coefficients?

조회 수: 2 (최근 30일)
Ashkan Rigi
Ashkan Rigi 2021년 11월 2일
편집: Ashkan Rigi 2021년 11월 2일
Hello every body. I use the built in matlab function " cscvn " for periodic splines. It must have 4*(n-1) coefficients but in returns 4*2*(n-1). coefficients (n is the number of x values) ? Does anybody know why? I am looking forwrard to hear your answers.

답변 (1개)

yanqi liu
yanqi liu 2021년 11월 2일
p = [0 1 1 0 -1 -1 0 0; 0 0 1 2 1 0 -1 -2];
size(p)
ans = 1×2
2 8
curve = cscvn(p)
curve = struct with fields:
form: 'pp' breaks: [0 1 2 3.1892 4.3784 5.3784 6.5676 7.5676] coefs: [14×4 double] pieces: 7 order: 4 dim: 2
  댓글 수: 1
Ashkan Rigi
Ashkan Rigi 2021년 11월 2일
n is the number of x , not the number of all the points

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spline Construction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by