MATLAB: Interpolating curve with tangent ends

curveinterpolationtangent ends

Hello, I need to construct interpolating curve from data points (I have 3 points in plane) with tangent ends. I know derivative at the ends (in points 1 and 3). Could anybody advise how to do it?
Thanks, Michal

Best Answer

Hi Michal,
depending on the data, the spline function could give good results. see help spline, where it says that if Y contains two more values than X has entries, then the first and last value in Y are used as the endslopes for the cubic spline.