Slope equation for plot of best fit line

Answers (2)

Divija Aleti
Divija Aleti on 30 Oct 2020
Edited: Divija Aleti on 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:
Use the function diff and see if the difference values are constants or varying

Categories

Asked:

on 28 Oct 2020

Commented:

on 7 Feb 2021

Community Treasure Hunt

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

Start Hunting!