필터 지우기
필터 지우기

How to bring Quartly format time excel data to matlab

조회 수: 4 (최근 30일)
Joon Jeon
Joon Jeon 2011년 3월 24일
Hi.
I'm about to bring time data from matlab. But the problem is that this data is 'quarterly' form such as
time
1981q1
1981q2
...
2011q1
whenever I bring this data using xlsread(), matlab doesn't recognize these data. How can I bring to matlab?
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 5월 13일
duplicates http://www.mathworks.com/matlabcentral/answers/3646-converting-to-quarterly-time-from-xls

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

채택된 답변

the cyclist
the cyclist 2011년 3월 24일
When you say that MATLAB doesn't recognize these data, what do you mean? Just that it does not recognize them as dates?
You might need to read them in as strings (which I am guessing is what xlsread does), then manually extract the first four characters as the year, and the last one as the quarter. Then you could convert those strings to numeric (using str2num).

추가 답변 (1개)

Oleg Komarov
Oleg Komarov 2011년 3월 24일
This is a duplicate post.

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by