Filter löschen
Filter löschen

Transforming Timestamps column into various columns

1 Ansicht (letzte 30 Tage)
João
João am 26 Nov. 2013
Kommentiert: João am 6 Dez. 2013
Hi all,
I'm with a problem and can't find the solution for it, hope you can help me.
I have this column;
Timestamps
01/01/2012 09:00
01/01/2012 10:00
01/01/2012 11:00
and now I want to slip it into 4 different columns with:
Day Month Year Hour
01 01 2012 9
The file is in excel.
Thanks.

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 26 Nov. 2013
data = {'01/01/2012 09:00'
'01/01/2012 10:00'
'01/01/2012 11:00'};
v = datevec(data);
out = v(:,1:4);

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by