% M-script to test the anova2 function
% Authors: M. Borgo ? A. Soranzo ? M. Grassi
small_yellow = [300 287 301 400 211 399 412 312 390 412];
small_red = [240 259 302 311 210 402 390 298 347 380];
small_black = [210 230 213 210 220 208 290 300 201 201];
big_yellow = [289 289 300 402 251 389 422 332 360 422];
big_red = [210 229 300 301 200 340 350 290 317 320];
big_black = [226 220 253 218 260 228 380 300 221 211];
yellow = [small_yellow big_yellow];
red = [small_red big_red];
black = [small_black big_black];
[p,table,stats]= anova2([yellow' red' black'],10);
multcompare (stats)