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
| load N
load S1
n1 = hist(DS11(1,:),50);
n2 = hist(DS11(2,:),50);
n3 = hist(DS11(3,:),50);
n4 = hist(DS11(4,:),50);
n5 = hist(DS11(5,:),50);
n6 = hist(DS11(6,:),50);
n7 = hist(DS11(7,:),50);
n8 = hist(DS11(8,:),50);
n9 = hist(DS11(9,:),50);
n10 = hist(DS11(10,:),50);
N = [n1(:) n2(:) n3(:) n4(:) n5(:) n6(:) n7(:) n8(:) n9(:) n10(:) ];
% [n1,x1] = hist(S(S<.5),10);
% [n2,x2] = hist(S(S>=.5),10);
% X = [x1(:) x2(:)];
figure
b = bar3(N./max(max(N)));
axis([0 10.5 0 60 0 0.002]);
for n=1:numel(b)
z = get(b(n),'zdata');
alph = any(z,2);
alph = strrep(alph,[0 1 1 0],[1 1 1 1]).';
alph = repmat(alph,1,4);
set(b(n),'AlphaData',double(alph),'facealpha','flat','edgealpha','flat')
end |
Partager