In matlab, is it possible in any way to do the following:
By using
S = DATESTR(D, 31)
Number String Example
31 'yyyy-mm-dd HH:MM:SS' 2000-03-01 15:45:17
Is it possible for matlab carry out an operation of producing a string which starts and ends at specific days with a pre-defined interval.
For example, if I had data in Excel with a time vector starting at 2009-01-01 00:00:00 and finishing at 2009-10-10 10:00:00 with measurements taken every four minutes, is it possible to type this into matlab? If I’m not clear please let me know.
For producing an array of date strings that start/end on specific dates, with a pre-defined interval, you can do this:
Convert to a numeric date form, generate the sequence, and then convert back. For example: