Trend lines
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chloe
am 31 Jan. 2012
Beantwortet: Chad Greene
am 22 Jan. 2015
Hi, I am trying to plot linear trend lines for a number of data sets and determine their respective gradients. Is there any way of doing this without using the 'tools,basic fitting' tab in the figure? Doing this for every plot will be quite time consuming. Sorry, I know this is probably a pretty basic question, but I'm pretty new to Matlab and would really appreciate any help. Thanks Chloe x
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Chad Greene
am 22 Jan. 2015
...Or to streamline the polyfit -> polyval -> plot process, polyplot does it all in one step, just like this:
polyplot(x,y)
You can also include any line formatting commands, just as you would with plot. For example,
polyplot(x,y,'r--','linewidth',3)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!