Data fitting and slop

Hi Im interested to plot XY which is a curve also Im interested to fit a best fit curve through data which should follow the data trend as is and then the point from where curve is changing or having maximum curvature, (X-value at that point) and a best fit line from the trend where values are straight to get intercept, After getting intercept I would like to use intercept and slop to draw another model on same graph. please see the attached figure for detailed idea.
Guide me please Thank you

Answers (1)

Image Analyst
Image Analyst on 13 Jun 2014

0 votes

Your picture is not attached. All I can guess at is that this might help: http://www.mathworks.com/matlabcentral/fileexchange/32696-2d-line-curvature-and-normals

1 Comment

Hi its in the attachment and data set is also pasted here
Mag range Count per M range Cumulative Total Above Lower M in Range
2.10-2.199 2 43
2.2-2.299 10 41
2.3-2.399 2 31
2.4-2.499 16 29
2.5-2.599 4 13
2.6-2.699 6 9
2.7-2.799 1 3
2.8-2.899 1 2
2.9-2.999 1 1

Sign in to comment.

Categories

Asked:

on 12 Jun 2014

Edited:

on 13 Jun 2014

Community Treasure Hunt

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

Start Hunting!