MATLAB: Generate timestamp in millisecond interval for interpolation

datenuminterpolationmilliseconds interval;

how to generate timestamp 0.250 seconds (4Hz) sampling interval? I tried [firstdatenum:0.125/86400:enddatenum]', but it gave me four different intervals (using diff) in the order 10^-6 (it is very small indeed, but annoying). I need the timestamp to interpolate it with other timeframe with 8Hz sampling interval.
If anyone can help. Thanks.

Best Answer

You are not going to be able to get exactly 0.25 second intervals in time stamps, as 86400 is not an exact divisor of 1.