%exercice 2 clear all; close all; g1={'p1','p1','p3','p1','p2','p1','p2','p2','p2','p3','p3','p3'}; g2={'c1','c1','c1','c2','c1','c2','c2','c1','c2','c1','c2','c2'}; g3={'e2','e1','e1','e2','e2','e1','e1','e1','e2','e2','e1','e2'}; varnames={'phare','calandre','entree air'}; S1=[6 4 3 7 6.5 4 4 3 6 6 5 7]; S2=[2 8 8.5 9 1.8 1 1.2 9.5 8.1 1.0 1.3 9.1]; %Anova sans intéraction [p,tbl1,stats1,terms1]= % coefficient de détermination R2 Rsquared= % coeffficients du modèle for i=1:length(stats1.coeffs) disp([cell2mat(stats1.coeffnames(i)),' : ',num2str(stats1.coeffs(i))]); end