ff2n
Two-level full factorial design
Syntax
Description
returns a
2dFF2
= ff2n(n
)n
-by-n
numeric matrix dFF2
containing the treatments of a full factorial
design for n
two-level factors. Each row of dFF2
corresponds to a single treatment (combination of the factor levels). Each column of
dFF2
contains the treatment values for a single factor, with values
of 0
and 1
for the two levels.
Examples
Input Arguments
Alternative Functionality
Instead of using ff2n
, you can create a fullFactorialDOE
object by using the fullFactorialDOE
function. The fullFactorialDOE
function provides these advantages:
The
fullFactorialDOE
function allows you to specify the factor names, number of factors, which factors are categorical, number and values of the levels for each factor, and experiment model.In addition to returning the design points, the
fullFactorialDOE
function stores your specifications in thefullFactorialDOE
object properties.After you create a
fullFactorialDOE
object, you can fit a linear model to the design points using thefitlm
function.
Version History
Introduced before R2006a