trend line calculation and display
262 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nello Troccia
le 17 Oct 2011
Commenté : Alex Backer
le 1 Juin 2020
Hi, how can I obtain and display a trend line from some points? I need the equation of the trend line. Thanks
Réponse acceptée
Harry MacDowel
le 17 Oct 2011
First, plot the data like usual.
Then go to Tools -> Basic Fitting
Choose one of the fittings you like, then check Show Equation
Remember to click the Right Arrow key at the bottom right to view the values of the coefficients for the fit.
0 commentaires
Plus de réponses (2)
Sarah Weihmann
le 14 Mar 2017
Hi Aravind S,
try the fit command for trendline calculation: http://de.mathworks.com/help/curvefit/fit.html Display the equation y=m*x+n as >> m=3; >> n=4; >> legend(sprintf('y=%f*x+%f',m,n));
Cheers, S
0 commentaires
aravind S
le 9 Fév 2017
Is there command available?
1 commentaire
Voir également
Catégories
En savoir plus sur Least Squares 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!