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
| a=1;
b=2;
c=3;
d=4;
se = datestr(now, 'SS');
RowName = datestr(now, 'MM');
Data = {a,b,c,d;...
};
newData = {a,b,c,d;...
};
f = figure('Position',[100 200 400 150]);
cnames = {'Luminosité','Pluie','Brouillard','Vent'};
t = uitable('Parent',f,'ColumnName',cnames,...
'Position',[20 20 360 100]);
while (1)
if (se==00)
a=a+1;
b=b+1;
c=c+1;
d=d+1;
newData = {a,b,c,d;...
};
Data = [newData ; Data];
set(t, 'Data', Data,...
'RowName', RowName);
end
end |
Partager