Slope equation for plot of best fit line

159 vues (au cours des 30 derniers jours)
JAYASHREE N
JAYASHREE N le 28 Oct 2020
Commenté : randerss simil le 7 Fév 2021
How do I get slope equation (y=mx+c) on plot for best fit line graph?

Réponses (2)

Divija Aleti
Divija Aleti le 30 Oct 2020
Modifié(e) : Divija Aleti le 30 Oct 2020
Hi Jayashree,
Once you have your plot, go to Tools->Basic Fitting from the menu bar in the figure window. Then select Linear. You will get the slope equation along with the best fit line on your plot.
For additional information, refer to the following link:

randerss simil
randerss simil le 7 Fév 2021
Use the function diff and see if the difference values are constants or varying
  1 commentaire
randerss simil
randerss simil le 7 Fév 2021
It will tell about the slope of the line

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by