Hi Jeff,
Thanks for looking into this. The line you are referring to is the suspicious one (in fact the one that made me wonder whether I had a conceptual misunderstanding here).
Below the line, they compute the actual F statistic with
for smplindx=1:nsmpls
datonesmpl=reshape(dat(smplindx,poslabelsperunit),nunits,nconds);
contrasts=datonesmpl*cfg.contrastcoefs';
contrastavg=mean(contrasts,1);
dev=contrasts-repmat(contrastavg,nunits,1);
covmat=(dev'*dev)/(nunits-1);
s.stat(smplindx)=nunits*contrastavg*inv(covmat)*contrastavg';
end;
Apparently, they are comparing the factor levels to their average, which makes a MANOVA unlikely. I will go and see whether there is something on this in the fieldtrip mailing list. I will keep you updated.
If someone has a suggestion in the meantime, of course please let me know about it.
Thanks again for your help and advice
Tim