How to find the gradient of the best fit line?

42 vues (au cours des 30 derniers jours)
Ali Imran Bin Omar
Ali Imran Bin Omar le 18 Oct 2020

Réponses (1)

KSSV
KSSV le 18 Oct 2020
Gradient is slope...you already have it in your hand..
p = polyfit(x,y,1) ;
m = p(1) % slope of line

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by