fullfact
Generate the full factorial design matrices.
Syntax
m=fullfact(levels)
Inputs
- levels
- The factor levels vector.
Outputs
- m
- Design matrix.
Example
Three factor fullfact
example.
m=fullfact([2,3,4])
>m = [Matrix] 24 x 3
1 1 1
2 1 1
1 2 1
2 2 1
1 3 1
2 3 1
1 1 2
2 1 2
1 2 2
2 2 2
1 3 2
2 3 2
1 1 3
2 1 3
1 2 3
2 2 3
1 3 3
2 3 3
1 1 4
2 1 4
1 2 4
2 2 4
1 3 4
2 3 4