Time series manipulation in matlab

Hello,
I have a 200 data files to process. I need a solution for one of the files and I would do same for the rest of the files. It is a typical daily time series problem.
My rainfall data is arranged thus: 1990 to 2011 as years, under each year are 12 months, and in front of each month are 29 or 30 or 31 days depending on the month.
My problem is to take all the days in each month and place them beneath that month and for each year. The result will be two column vectors; one for dates and one for rainfall on each day, in each month in each year.
Thanks in advance.
Asong.

댓글 수: 3

And your data files are? .mat files? Text files? Binary files? Arranged by year? Quipus?
doc datenum
ASONG ZILEFAC
ASONG ZILEFAC 2012년 11월 15일
Hello Jose,
My data files are .txt. How can I use datenum to cat the files?
José-Luis
José-Luis 2012년 11월 15일
Ok, I will try to be clearer. Without actually looking at some file sample, your question is very difficult to answer. The description you give is vague and can be interpreted in different ways.
If all you want to do is concatenate the files, then why don't just use cat and forget about Matlab? What are you trying to achieve? It is not clear to me. I suggested datenum as it will allow you to do date manipulations, but, as said, I don't understand what you want.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Time Series Objects에 대해 자세히 알아보기

질문:

2012년 11월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by