how to fit linear trend in time series
Show older comments
i have this time series liner fitted figure but i plotted this figure with the help of matlab tool box((basic fitting)(liner fit)) but i want to do same thing from matlab code.thank you in advance.
Accepted Answer
More Answers (1)
dpb
on 26 Apr 2014
p=polyfit(y,x);
doc polyfit % for more details
doc polyval % to evaluate
Categories
Find more on Descriptive Statistics and Insights in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!