Converting Numeric array into a datetime Array
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Can you kindly assist, i am trying to convert my Time which is numeric array(22x1 double) into a 22x1 datetime array but it is giving me a date which has errors although my time is correct.
datetime(Time1,’ConvertFrom’,’datenum’)
4 commentaires
Dyuman Joshi
le 25 Oct 2023
What kind of error? Code not running properly error? or Output does not match the expected value error?
Also, please attach the values for the numeric array you are working with.
dpb
le 25 Oct 2023
Maybe the problem is it wasn't created by MATLAB @datenum but came from Excel??? It doesn't use the same reference date as does MATLAB (and there are other issues as well), but for starters if it was imported from Excel try
datetime(Time1,xConvertFromc,eExcell)
Martha
le 25 Oct 2023
Réponses (0)
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!