M and B Values from Linear Curve Fit

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

Do you have any tried code for it?
All good thankyou. worked it out

Sign in to comment.

Answers (0)

Categories

Asked:

on 13 Oct 2018

Commented:

on 13 Oct 2018

Community Treasure Hunt

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

Start Hunting!