You can use datenum()
function in MATLAB which converts datetime to a serial datenumber. The datenumber represents number of days since January 0, 0000.
Here is an example:
main.m64 chars3 lines
In the above code, datetime_data
is the datetime variable that needs to be converted and date_number
is the converted numerical value.
gistlibby LogSnag