Height and Width of the matrix will be adjusted automatically.