FUNCTION REFERENCE
anova2
Balanced two-way fixed-effects analysis of variance.
Balanced two-way fixed-effects analysis of variance.
Syntax
[p,tbl,stats] = anova2(y[,reps[,displayopt]])Rows are consecutive replicate blocks; columns are column-factor groups. reps defaults to 1 and must divide the row count. p contains column and row effects, followed by interaction when reps exceeds 1. stats contains source, sigmasq, colmeans, coln, rowmeans, rown, inter, pval and df. NaN data is rejected. displayopt on prints the table; off suppresses it.
Example
[p,tbl,s] = anova2([1 4 9;2 5 7;3 8 6],1,'off')Differences from MATLAB: no table figure. Display text uses tab-separated columns and eight decimal places.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.