Find the linear portion of a curve

  • Thread starter Thread starter RandomGuy88
  • Start date Start date
  • Tags Tags
    Curve Linear
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 14K views
RandomGuy88
Messages
404
Reaction score
6
Hi,

So I have a set of experimental data and I would like to find the slope of the linear portion of the data. For example, say I have set of points, the first few points are not linear, then there is a chunk of data in the middle that is linear, and then the last several points are very non-linear. I would like to find the slope of this linear portion in the middle but the location and length of the linear portion will be different for each experiment. I could easily do this by just manually removing the non-linear portions of the curve but I would like for the computer to be able to do this automatically. Does anyone have any suggestions on the best way to do this?

Thanks
 
Engineering news on Phys.org