필터 지우기
필터 지우기

Converting to quarterly time from xls

조회 수: 4 (최근 30일)
Joon Jeon
Joon Jeon 2011년 3월 21일
I have a excel(xls) data in which the first column is time variable (quarterly from 1978q1 to 2011q1).
How can I bring this into matlab and use the same format. (I will plot against other merged data.)
Help me! (I searched 'toquarterly' but its explaination is too short to fully understand. Any good explaination might be helpful!)

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 3월 23일
You can import xls data with xlsread:
[data, text] = xlsread(filename,...);
EDIT
To convert cellstrings dates of the format yyyyq# into numeric representation, use:
datenum(text(:,1),'yyyyQQ')

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by