Convert a column of dates
Mostra commenti meno recenti
I can use the datenum command for individual cells, but can not seem to apply it to a whole column. What am I doing wrong? Thanks, Stephen
Risposta accettata
Più risposte (1)
Jan
il 15 Mar 2012
datenum does accept a column cell:
datenum({'15-Mar-2012 23:53:23'; '15-Mar-2012 23:53:23'})
>> ans =
7.3494e+005
7.3494e+005
3 Commenti
Stephen Jones
il 16 Mar 2012
Jan
il 16 Mar 2012
I suggest to read the documentation: help datenum, doc datenum
There you find:
datenum({'20120315'; '20120316'}, 'yyyymmdd')
Sara Mendiola
il 1 Mar 2017
How about datestr for a column?
Categorie
Scopri di più su Dates and Time in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!