I am creating a list of time records, each of which is incremented by an hour from the previous record. At some point during the process, the record is not incremented by an hour anymore , instead by 59 mins 59.9999 seconds. So there seems to be a round off error going on. To see this behavior, download all three files, GenerateDatesHours, dateVec, and runme, execute runme.m, and see the result 'ans' in the MATLAB Variable Editor.
MATLAB: I am receiving an incorrect result from ADDTODATE in MATLAB 7.10 (R2010a)
addtodateerrorfloatingincrementMATLABnumberoffround
Best Answer