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
| clear all
close all
X=[datenum(2011,1,1,0,0,0),datenum(2011,1,2,0,0,0)...
datenum(2011,1,3,0,0,0), datenum(2011,1,4,0,0,0)] ;
Y=[10:10:30]';
C=[1 4 6 3 ; 84 74 69 99 ; 145 156 167 146];
figure
subplot(2,2,1)
pcolor(X,Y,C)%X= 1*m ;Y= 1*n;C n*m
colorbar
title('pcolor')
set(gca,'xtick',[X(1:end)])
datetick('x','dd-mm-yy','keeplimits','keepticks')
subplot(2,2,2)
set(gca,'xtick',[X(1:end)])
datetick('x','dd-mm-yy','keeplimits','keepticks')
imagesc(X,Y,C)
colorbar
title('imagesc')
set(gca,'xtick',[X(1:end)])
datetick('x','dd-mm-yy','keeplimits','keepticks')
subplot(2,2,3)
surf(X,Y,C)
title('surf')
colorbar
set(gca,'xtick',[X(1:end)])
datetick('x','dd-mm-yy','keeplimits','keepticks')
subplot(2,2,4)
image(X,Y,C)
title('image')
colorbar
set(gca,'xtick',[X(1:end)])
datetick('x','dd-mm-yy','keeplimits','keepticks') |
Partager