Well, I found what I was searching for:
points=[(x)';(y)'];
fnplt(cscvn(points),'r'); %"Natural" or periodic interpolating cubic spline curve
"Liana" wrote in message <in0vdk$so8$1@fred.mathworks.com>...
> Now it looks a bit similar to what I need:
> xx=min(x):0.1:max(x);
> yy = spline(x,y,xx);
> plot(x,y,'o',xx,yy);
>
> But I would be glad to hear another ideas.
>
> "Liana" wrote in message <in0t34$mug$1@fred.mathworks.com>...
> > Hello,
> >
> > there is a simple path specified as follows:
> > x = [2; 4; 6];
> > y = [5; 3; 7];
> > plot(x,y,'ro');
> >
> > I'd like to smooth a sharp angle according to some predefined smoothness coefficient. If this coefficient is equal to 0, then the angle is sharp. And if it's equal to 1, then there is just a straight line. What's the best way to implement this task in MATLAB?
> >
> > P.S. I don't need to fit this path by polynomial, etc.
> >
> > Thanks.
