1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| data1 = {
'14:35:56' 26.51
'15:00:47' 27.43
'15:00:48' 30.66
'15:00:49' 31.73
'15:00:59' 31.4
'15:02:40' 29.59
'15:02:41' 26.45
'15:19:40' 26.07
'15:19:41' 25.65
'15:20:03' 25.26
'15:20:04' 22.47
'15:20:05' 0
'15:20:32' 16.53
'15:20:33' 19.5
'15:20:34' 27.22
'15:20:38' 26.9
'15:20:47' 26.61
'15:21:04' 26.34};
data2 = {
'14:35:56' 26.51
'15:00:47' 27.43
'15:00:48' 32.66
'15:00:49' 30.73
'15:02:40' 29.59
'15:02:41' 28.45
'15:19:40' 26.07
'15:19:41' 27.65
'15:20:03' 25.26
'15:20:04' 27.47
'15:20:33' 21.5
'15:20:34' 19.22
'15:20:38' 22.9
'15:20:47' 23.61
'15:21:04' 26.34
'15:21:23' 25.34};
datanum1 = datenum(data1(:,1), 'HH:MM:SS');
datanum2 = datenum(data2(:,1), 'HH:MM:SS');
hold on
plot(datanum1, cell2mat(data1(:,2)))
plot(datanum2, cell2mat(data2(:,2)), 'r')
mini = min([datanum1 ; datanum2]);
maxi = max([datanum1 ; datanum2]);
set(gca, 'xtick', linspace(mini,maxi,7))
datetick('x', 'HH:MM:SS', 'keepticks') |
Partager