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
| h=bar(mean_m.');
hh = get(h,'children');
testo=cell2mat(hh);
colormap(jet(64));
for i=1:length(hh)
if i==1
set(testo(i),'FaceVertexCData',couleurv1,'FaceColor','flat')
colorbar('YTickLabel',{'0','5','10','15'})
caxis([0 15])
end
if i==2
set(testo(i),'FaceVertexCData',couleurv2,'FaceColor','flat')
colorbar('YTickLabel',{'0','5','10','15'})
caxis([0 15])
end
if i==3
set(testo(i),'FaceVertexCData',couleurv3,'FaceColor','flat')
colorbar('YTickLabel',{'0','5','10','15'})
caxis([0 15])
end
if i==4
set(testo(i),'FaceVertexCData',couleurv4,'FaceColor','flat')
colorbar('YTickLabel',{'0','5','10','15'})
caxis([0 15])
end
end |
Partager