Hi, I tried to intepolate circular curve using spline interpolation using two different commands for same data sets. The examples are taken from matlab documentation :
Using function spline(x,y): https://in.mathworks.com/help/matlab/ref/spline.html
So, my query is as follows:
While using function spline(x,y), we define our phase angles or break points (here, x = pi*[0:.5:2];) and accordingly our piecewise polynomial (pp) has break points at breaks = pi*[0:.5:2].
While using function cscvn(points) we don't define our phase angles or break points. The break points of pp comes out to be breaks = [0, 1.1892, 2.3784, 3.5676, 4.7568];
So, in the 2nd function how is the break points coming so? If we see the values, the last value or angle is less than 360 even though the curve completes one round. How?
Secondly, If i plot my curve using these two functions along with points correspoding to breaks (shown as red dots). They are same but how? Clearly, the phase angles are different in both cases but how can they have same position on the plots.