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

조회 수: 2 (최근 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