trend line plotting question
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Good evening...i have plotting a graph in GUI by loading the data from an excel file! Then, how should i do if i want to add a linear and polynomial trend line in the same axes?
regard chin nyuk eng
0 commentaires
Réponse acceptée
Fred
le 3 Avr 2011
In GUI after you plot your data, you can drag down "Tools", there is a menu called "Basic Fitting".
0 commentaires
Plus de réponses (2)
chin Eng
le 3 Avr 2011
2 commentaires
John D'Errico
le 3 Avr 2011
Even better, I just want to think about what I want to do, and have the computer know exactly what I intended. Why bother wasting the effort of clicking a mouse? On second thought, why involve me at all? Why not have the computer automatically decide what it is I would have wanted to do, were I actually to do anything, and do it all for me while I sleep?
Samuel
le 6 Juil 2012
Some of us prefer code, especially when we need to apply the same code to 10's, if not 100's of files and need the trendlines for all of them. It is very time consuming to have to do that for every file.
Chad Greene
le 25 Mar 2021
I've written a simple function called polyplot to add a linear trend line to plots. Get it on the File Exchange here.
0 commentaires
Voir également
Catégories
En savoir plus sur Annotations 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!