Set matrixDimension to 4