Way to import time series date string as mm-dd-yyyy
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Jan
le 20 Sep 2011
What exactly is your question? Can you post the type of the available input and wanted output?
Réponse acceptée
Jan
le 20 Sep 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 commentaires
Plus de réponses (2)
Chris
le 20 Sep 2011
2 commentaires
Fangjun Jiang
le 20 Sep 2011
Time series supports all the data format. What tsimport tool are you using?
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!