M and B Values from Linear Curve Fit

3 views (last 30 days)
HoboHarry
HoboHarry on 13 Oct 2018
Commented: HoboHarry on 13 Oct 2018
I was hoping someone could explain how to get the M and B values of a line from a curve fit. I haven't used the curve fit tool but have used polyfit and polyval and then plotted this.
I'm just not sure how to export the equation of the line, well at least the grade and constant values
  2 Comments
Kevin Chng
Kevin Chng on 13 Oct 2018
Do you have any tried code for it?
HoboHarry
HoboHarry on 13 Oct 2018
All good thankyou. worked it out

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!