How to find the gradient of the best fit line?
42 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
0 commentaires
Réponses (1)
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
Voir également
Catégories
En savoir plus sur Interpolation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!