Percentage deviation from a line of best fit?

1 view (last 30 days)
I have a set of 20 data points where roughly 15 of them are in a straight line and the results start to trail off. I need to be able to compute the percentage deviation of each point from the line of best fit that was fitted using the ezfit tool.
Is there any way that this can be done?
  1 Comment
darova
darova on 4 Sep 2019
There is a way: you can use polyfit() to fit your data to line

Sign in to comment.

Answers (0)

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!