I'm saving a 1x50 array in a variable in a netCDF file and this operation is done every ~10sec. I would like also to save matlab'time datestr(now) (YYYY-MM-DDTHH:MM:SS).
How should I do ? I tried to store the date (datestr(now)) in a time variable without success.
Kind regards,
To store a variable in your workspace to a .mat file, you can use this:
Note that a ':' in the date string will make the
save()function throw an error.