% ----------------- Plot2dSpline.m ------------------------------ % % function Plot2dSpline(xc,yc,s,pts) % % plot pts points along the 2-d spline curve given by coefficient matrices % xc(1:4;1:n-1) and yc(1:4,1:n-1) with arclength "knots" s(1:n) % function Plot2dSpline(xc,yc,s,pts) n=length(s); s0 = s(1):(s(n)-s(1))/pts:s(n); x0 = EvalSpline(xc,s,s0); y0 = EvalSpline(yc,s,s0); plot(x0,y0,'k-'); axis('square')