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
|
%Boxplot des périmètres
X = [];
G = [];
for i = 1:length(tab)
c = tab{i}(:,cPerimeter);
X = [X ; c];
G = [G ; i*ones(size(c,1),1)];
end
subplot (3,2,1)
boxplot(X, G, 'sym', ' ') %j'ai enlevé les outlier avec sym = rien
title(a{1}(cPerimeter ,1)); xlabel('Conditions'); ylabel([a{1}{cPerimeter ,1} '(\mum)']);
set(gca,'XTick',1:numel(cMesLabels));
set(gca,'XTickLabel',cMesLabels);
%Mise en place de la matrice statistique
stat1 = [];
for i = 1:length(tabstat)
stat1 = [stat1, tabstat{i}(:,cPerimeter)];
end
%Avec les titres de lignes
ligne={'Mean';'Var';'Std'};
%Formatage
cellFinal = [cellfun(@num2str,num2cell(stat1),'UniformOutput',false)];
%cellFinal = [{' '},colonne; ligne,cellfun(@num2str,num2cell(stat1),'UniformOutput',false)];
yTicks = get(gca,'ytick');
xTicks = get(gca, 'xtick');
N=axis;
minY =N(3);
verticalOffset = 10;
text(0.5, minY - verticalOffset, ligne, 'HorizontalAlignment','Right');
for xx = 1:length(xTicks)
text(xTicks(xx), minY - verticalOffset, cellFinal (:, xx),'HorizontalAlignment','Center');
end |
Partager