about addtodate function using?
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Roger
le 30 Juin 2014
Réponse apportée : Star Strider
le 30 Juin 2014
datevec(addtodate(datenum(['1/1/2008']),102,'day'))
ans=
2008 4 12 0 0
datevec(addtodate(datenum(['1/1/2008']),103,'day'))
ans=
2008 4 12 23 0
the second ans , why not 2008 4 13 0 0 ??
0 commentaires
Réponse acceptée
Star Strider
le 30 Juin 2014
The addtodate function has some glitches, some of which may be version specific. I cannot reproduce your error in R2014a using the commands you posted.
I get:
ans =
2008 4 12 0 0 0
ans =
2008 4 13 0 0 0
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!