tbl = coeftest(rm,A,C,D) returns
a table tbl containing the multivariate analysis
of variance (manova) for the repeated measures model rm.

Tips

This test is defined as A*B*C = D,
where B is the matrix of coefficients in the repeated
measures model. A and C are
numeric matrices of the proper size for this multiplication. D is
a scalar or numeric matrix of the proper size. The default is D
= 0.

The table between includes the between-subject
variables age, IQ, group, gender, and eight repeated measures y1
through y8 as responses. The table within includes
the within-subject variables w1 and w2.
This is simulated data.

Fit a repeated measures model, where the repeated measures y1
through y8 are the responses, and age, IQ, group,
gender, and the group-gender interaction are the predictor variables.
Also specify the within-subject design matrix.

rm = fitrm(between,'y1-y8 ~ Group*Gender + Age + IQ','WithinDesign',within);

Test that the coefficients of all terms in the between-subjects
model are the same for the first and last repeated measurement variable.

The p-value of 0.25567 indicates that there
is not enough statistical evidence to conclude that the coefficients
of all terms in the between-subjects model for the first and last
repeated measures variable are different.