Create the model matrix from the design matrix and model specification.
The encoded design matrix.
The encoded model, specified as in MATLAB.
The model matrix