Condition of continuity of the first derivative
5 views (last 30 days)
Show older comments
Hi,
i'm not very expert in Matlab and i don't know if i can explain exactly my problem. I try! I have two vectors(x1,x2 and y1,y2) that contain coordinates that describe two branches of curve. I would like to plot a single curve obtained from the union of the two branches.
The issue is that I want to join the two branches so that the overall curve has continuous first derivative at the point of intersection of the two branches (i have found the intersection point by extrapolating outside of the range of definition of the two branches). I need to impose the condition of the derivative in order to avoid the danger that the two branches form a cusp at the point of intersection.
Someone may suggest how to impose the passage for some points and at the same time the continuity of the derivative at a point?
Thanks!!
0 Comments
Answers (1)
Matt J
on 2 May 2013
Just interpolate between the two curves using a first order smooth interpolator, e.g.,
spline([x1,x2],[y1,y2],desiredpoints);
2 Comments
See Also
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!