% --------------------- ClosedSpline2d.m ----------------------- % % function [xc,yc,s] = ClosedSpline2d(x,y) % % inputs x(1:n),y(1:n). Require that x(n)==x(1), y(n)==y(1) % outputs xc(1:4;1:n-1),yc(1:4;1:n-1), s % % Computes the coefficients for the 2-d closed curve Spline as % described in the programming assignment. First computes % the arclengths s(1:n) and then applies PeriodicSpline to % both (s,x) and (s,y) to get coefficient matrices xc and yc % function [xc,yc,s] = ClosedSpline2d(x,y) disp('%%%%%%%%% YOU NEED TO WRITE ClosedSpline2d %%%%%%%%%%%')