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,
I finaly succeed in store time in my netCDF file. 1. I defined a 'time' dimension 2. I defined a dimension for my 1x50 value then I wrote my data
where myData (my 1x50 array), myData_triggertime (=datestr(now)) are updated at each acquisition loop and i incremented at each loop.
kind regards