Curve fitting of data points

1 view (last 30 days)
Angela
Angela on 19 Jul 2018
Commented: Angela on 23 Jul 2018
I have a series of repeated data points that i am trying to fit with a skewed curve. In the graph I am showing one set of the data points which are in blue. The black hand drawn line is the kind of fit i want for my data. I want my fit to be a curve like the one drawn, not a combination of two linear functions or a sawtooth. I have included the data points in text files. Thank you.
  4 Comments
Angela
Angela on 19 Jul 2018
The wobble is because i am not very good at drawing a straight line but the intent was for that line to be straight. You are right, the model that i want should be almost a straight line on the left side, unfortunately i do not have a model function, i am trying to built a model based on this data so i do not have the form, I am just trying to fit the data. Thank you.

Sign in to comment.

Accepted Answer

Matt J
Matt J on 19 Jul 2018
My suggestion would be a hyperbola, but rotated.
  3 Comments
Angela
Angela on 23 Jul 2018
Thank you, it worked well!

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 19 Jul 2018
  1 Comment
Angela
Angela on 19 Jul 2018
Thank you for the suggestion. I did try that but unfortunately it does not give me the curved shape i want, it looks more like a combination of 2 linear fits (one for the sloped line on the right and another one that is almost straight for the left side).

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!