analyzing assymetric data sets

1 Ansicht (letzte 30 Tage)
antonet
antonet am 4 Jun. 2012
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 Kommentare
Oleg Komarov
Oleg Komarov am 5 Jun. 2012
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 am 6 Jun. 2012
thank you oleg

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by