Plotting a single fit for multiple years by averaging the fit co-efficients of individual years.
1 次查看(过去 30 天)
显示 更早的评论
I have fitted the curves for individual years and plotted it on a single plot. Now i need to fit all these individual years fit with a single fit for the whole plot.
Any tips please ? I don't have much hands on experience with matlab
1 个评论
dpb
2020-8-4
It undoubtedly is not going to work to average coefficients -- fit all the data globally to get accurate statistics of the fit or average the data across observations if and fit if only the average coefficients are needed and not prediction statistics, goodness of fit, etc., etc., etc., ...
回答(1 个)
Cris LaPierre
2020-8-4
How is your data organized? I would probably get the day-of-year for all dates, plot the data against that, and then fit a curve to that. You can get the day-of-year with the following code:
day(dateVar,'dayofyear')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fit Postprocessing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!