MATLAB: F-test for the equality of means

ftest

Hi, how can i test for equality of means for >2 vectors?, Thanks in advance

Best Answer

You can use anova1() to compare the means of two or more groups.
That function returns the F statistic in the optional anovatab argument.
strength = [82 86 79 83 84 85 86 87 74 82 ...
78 75 76 77 79 79 77 78 82 79];
alloy = {'st','st','st','st','st','st','st','st',...
'al1','al1','al1','al1','al1','al1',...
'al2','al2','al2','al2','al2','al2'};
[p,anovatab,stats] = anova1(strength,alloy);