MATLAB: How to add serial date and time for each 12 min

datenum

Hello All,
I have date and time like: (2009 10 09 12 36 00), I would like to make a serial date and time that increase each 12 min (that means 36 min will be 48 00 12 24 …..)to date and time for example (2009 10 10 22 24 00).
Please any help: Thanks in advance,
Riyadh

Best Answer

Take a look at this documentation page for some examples of how to do what you want using datetime and duration arrays.