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
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
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')

类别

Help CenterFile Exchange 中查找有关 Fit Postprocessing 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by