Intersection of Piecewise curve fitting

5 views (last 30 days)
Ana
Ana on 13 Aug 2015
Edited: Ana on 28 Aug 2015
How can I piecewise fit a curve, with two pieces, and find out the point of intersection of these two pieces? For example:
y = X+2, y<P y = x^2, y>=P
'P' is unknown and I want to find it.
And do I need additional Toolboxes besided the Curve Fitting Toolbox?
  4 Comments
Torsten
Torsten on 13 Aug 2015
You really mean to distinguish between y<P and y>=P ?
Or is it x<P and x>=P ?
Best wishes
Torsten.
Ana
Ana on 28 Aug 2015
Edited: Ana on 28 Aug 2015
Hi Lukas and Torsten, thanks a lot for your comments. What I meant is, that I want to fit a curve by two different pieces: f(x)=a.x+b for the interval x<P and f(x)=c.x^(3/2)+d.x+e for x>=P. This P should the the intersection point of the two pieces that I want to fit into my original data curve. Thus, according to this intersection point, the coefficients of the pieces of the function to fit should be obtained.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!