Formatting Time Strings
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have a vector of time strings which look like this: ' 2011/11/01 09:00:00.792'. I want this string to look like this: 20111101090000792. How can I acheive that. Thanks.
0 Commenti
Risposta accettata
Sean de Wolski
il 9 Gen 2012
One of many ways:
str = ' 2011/11/01 09:00:00.792'
str2 = str(isstrprop(str,'digit'))
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Characters and Strings 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!