For 2 vectors
time [size = n on 1] and temp [size = n on 1]
If ur timeseries is a char vector (all rows are the same length, not cells). U can be converted to matlab time, e.g.
time_tmp = datenum(time,'dd-mmm-yyyy');
Then u can change the time vector (same length as time)
temp(time_tmp == datenum(2008,1,16)) = 25;
otherwise u can convert ur data to 2 vectors and then do above.
source share