analyzing assymetric data sets

조회 수: 2 (최근 30일)
antonet
antonet 2012년 6월 4일
Dear all,
I have some data on prices for a specific good across time and across countries. The first problem is that the start and end date for each country is different. For example
Austria Belgium
"2/11/08" "07/12/08"
"30/11/08" "04/01/09"
"28/12/08" "01/02/09"
"25/01/09" "01/03/09
"22/02/09" "29/03/09"
The second problem is that the time span for each country is different. For example the data for France are available for 39 periods of 4 weeks(or 28 days) The data for Belgium are available for 36 periods of 4 weeks.
The third problem is that I have jumps which means that in some cases the next date is not always every after 4 weeks. Put differently, the distance that separates apart two successive dates in not always 28 days but in some cases it is 29 , 27 or 34.
Is there anything I can do (any function perhaps?) to solve these 3 problems. If I do not solve these problems I will not be able to use the data set for analysis. Please be as specific as you can
Thanks
  댓글 수: 10
Oleg Komarov
Oleg Komarov 2012년 6월 5일
interp1() will interpolate for all dates based on the existing datapoints that you will provide, i.e. it will NOT interpolate the first date and THEN interpolate the others from the previously interpolated value.
Check the graph in the documentation: http://www.mathworks.co.uk/help/matlab/ref/interp1.html
antonet
antonet 2012년 6월 6일
thank you oleg

댓글을 달려면 로그인하십시오.

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by