Cannot get cscvn (from spline library)function to work

조회 수: 8 (최근 30일)
Cedrick Levesque-Baker
Cedrick Levesque-Baker 2016년 3월 3일
Hi,
I am trying to interpolate a curve using CSCVN function (from spline library). I think it is because the way I store the coordinate in my array. When I run the program, it shows all the coordinates location from the for loop, but not the interpolated curve. In case the problem my software, I tried a premade matlab code that uses cscvn function and it works...
for y=-yl2:b:0;
i = i + 1 ;
x = ((-(r)/(r+l2))*y);
z = sqrt(r.^2-x.^2);
table1_step1 = [x ; y ; z];
table1_step1_print(i, : , :)= table1_step1;
end
fnplt(cscvn(table2_step1_print(:,1),table2_step1_print(:,2), table2_step1_print(:,3)));

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by