FUNCTION REFERENCE

anova1

One-way fixed-effects analysis of variance.

One-way fixed-effects analysis of variance.

Syntax

[p,tbl,stats] = anova1(y[,group[,displayopt]])

Matrix columns are groups; vector data accepts one label per observation. Matrix labels merge columns. Numeric/logical labels sort numerically; text labels retain first appearance. Missing data and empty or NaN labels are removed. stats contains gnames, n, source, means, df and s. displayopt on (default) prints a text ANOVA table; off suppresses it.

Example

[p,tbl,s] = anova1([1 2 4;2 5 8;4 7 9],[],'off')

Differences from MATLAB: no table figure or box plot. 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.