Is there an error in the documentation example for the ADDTODATE function in MATLAB?
Show older comments
The example in the documentation for the ADDTODATE function states that the following command:
R = addtodate(datenum('12/24/1984 12:45'), 20, 'day');
datestr(R)
should return the following result:
ans =
13-Jan-1999 12:45
However, when I execute the above example, I obtain a different result:
ans =
13-Jan-1985 12:45:00
Accepted Answer
More Answers (0)
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!