Matlab Dates mismatch between two sets of data. Help!

前端 未结 2 1556
囚心锁ツ
囚心锁ツ 2021-01-14 08:08

Matlab Dates mismatch between two sets of data. Help!

Please forgive the simplicity of the question but its my first day;

I am working with two sets of time

2条回答
  •  暖寄归人
    2021-01-14 08:31

    You might have a problem if you just use the dates from either one of the series because each of them might have dates that are missing in the other. What I would do is start with a clean 3-column matrix that contains all the weekdays in the date range. This post on the Mathworks blog can offer some insight on how to do it. Then fill in the two other columns with the values from your two data series. This way you will be sure all your values are in the matrix and will make your life simpler if you decide to add more data.

    As for filling in the missing dates, you can just use : the 1-D interpolate function

提交回复
热议问题