interpolating curve with tangent 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

 Accepted 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.

1 Comment

Thank You, this works. I didn't notice this in help.

Sign in to comment.

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!