ANOVA with two within-subject variables is used to analyze the relationship between two independent variables and the dependent variable. This procedure requires fewer participants but can give rise to research confounds such as order or practice effects and participant bias.
For a more detailed explanation on repeated measures designs, we suggest you read the help section of the RMAOV1 file you can find on this MATLAB File Exchange site.
It needs to input the X- data matrix (Size of matrix must be n-by-4;dependent variable=column 1;independent variable 1=column 2;independent variable 2=column 3;subject=column 4) and the alpha-significance level (default = 0.05).
The output is a complete Analysis of Variance table and the strength of the relationships.
· MATLAB Release: R11