string to number
Afficher commentaires plus anciens
Hi I have an array which looks like this:
'''27/01/2012 15:30:00'''
'''27/01/2012 15:31:33'''
'''27/01/2012 15:49:19'''
'''27/01/2012 15:49:19'''
'''27/01/2012 15:50:26'''
I want to just have the TIME and in a NON-STRING format. Any help?
3 commentaires
Friedrich
le 14 Fév 2012
You cant keep the format 15:30:00 when using a a non string format. only way is an numeric array of the ascii value of each char. but this doesnt make much sense.
You can use the datenum function to convert the time in a numerical value, e.g. datenum('15:30:00','hh:mm:ss'). The important question is why do you need a Non String format and what would you do with it.
Mate 2u
le 14 Fév 2012
Mate 2u
le 14 Fév 2012
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Dates and Time dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!