Filter löschen
Filter löschen

Converting to quarterly time from xls

4 Ansichten (letzte 30 Tage)
Joon Jeon
Joon Jeon am 21 Mär. 2011
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!)

Akzeptierte Antwort

Oleg Komarov
Oleg Komarov am 23 Mär. 2011
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')

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by