Way to import time series date string as mm-dd-yyyy
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
My data is in the format of mm-dd-yyyy hh:mm:ss however it seems like the time series import tool will only import dates & time data if the format is in dd-mmm-yyyy hh:mm:ss
1 Commento
Jan
il 20 Set 2011
What exactly is your question? Can you post the type of the available input and wanted output?
Risposta accettata
Jan
il 20 Set 2011
You can convert the data manually:
S1 = '07-12-2011 13:14:15'
D = datenum(S1, 'mm-dd-yyyy HH:MM:SS');
S2 = datestr(D, 'dd-mmm-yyyy HH:MM:SS')
0 Commenti
Più risposte (2)
Chris
il 20 Set 2011
2 Commenti
Fangjun Jiang
il 20 Set 2011
Time series supports all the data format. What tsimport tool are you using?
Vedere anche
Categorie
Scopri di più su Dates and Time in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!