from cell to date
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Johannes Deelstra
am 3 Jul. 2017
Beantwortet: Guillaume
am 4 Jul. 2017
I have a cell variable 201624x1 with values for date from '01/01/1994 01' until '01/01/1994 01' How do I convert these into Matlab dates
Thanks
3 Kommentare
per isakson
am 4 Jul. 2017
Bearbeitet: per isakson
am 4 Jul. 2017
- See Represent Dates and Times in MATLAB
- See Convert Between Datetime Arrays, Numbers, and Text
- What do you mean by "Matlab dates" ? An array of serial date numbers or a datetime array.
- Either 00 through 23 or 01 through 24. I prefer the former because 24 will automatically be converted to 00 of the following day.
Akzeptierte Antwort
Weitere Antworten (1)
Anushi1998
am 4 Jul. 2017
Use strfun and datetime functions for conversion
1 Kommentar
Guillaume
am 4 Jul. 2017
You probably mean cellfun. There is no strfun in base matlab. In any case, datetime can directly operate on a cell array so cellfun would not even be needed.
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!