This view is probably what you are looking for, but it implements the Bonferroni-Holm method. You will need to look for FEX for similar solutions for other correction methods.
However, the Statistics Toolbox has the MULTCOMPARE method, which is intended for several comparative tests, although it does not return the corrected p-values. Here is an example:
load fisheriris [pVal tbl stats] = kruskalwallis(meas(:,1), species) %# Kruskal-Wallis or ANOVA title('Sepal Length'), xlabel('Groups'), ylabel('Value') [c,m] = multcompare(stats, 'ctype','bonferroni', 'display','on');
Amro
source share