To conduct a multivariate ANOVA with repeated measures in MATLAB for two independent and two dependent variables, you can use the manova1 function along with the repmat and reshape functions to set up your data. Here's an example of how you can do this:
main.m575 chars18 lines
The manova1 function returns a table of results in manovatbl and a Multivariate analysis of variance structure in result that contains the following fields:
SSM: sum of squares due to model (independent variables)dfM: degrees of freedom of the modelSSR: sum of squares due to residual errordfR: degrees of freedom of the residual errorF: F statisticP: p-valuestats: ANOVA statistics for each dependent variableYou can access these fields by using dot notation, e.g., result.SSM or result.stats.P.
gistlibby LogSnag