Filter löschen
Filter löschen

How to bring Quartly format time excel data to matlab

4 Ansichten (letzte 30 Tage)
Joon Jeon
Joon Jeon am 24 Mär. 2011
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 Kommentar
Walter Roberson
Walter Roberson am 13 Mai 2011
duplicates http://www.mathworks.com/matlabcentral/answers/3646-converting-to-quarterly-time-from-xls

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

the cyclist
the cyclist am 24 Mär. 2011
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).

Weitere Antworten (1)

Oleg Komarov
Oleg Komarov am 24 Mär. 2011
This is a duplicate post.

Kategorien

Mehr zu Data Import from 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