Azzera filtri
Azzera filtri

Plotting a single fit for multiple years by averaging the fit co-efficients of individual years.

2 visualizzazioni (ultimi 30 giorni)
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 Commento
dpb
dpb il 4 Ago 2020
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., ...

Accedi per commentare.

Risposte (1)

Cris LaPierre
Cris LaPierre il 4 Ago 2020
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')

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by