Checks if a matrix is of a particular size.
The matrix
The number of rows or (if the cols parameter is blank) the number of rows or columns (the size)
Optional
The number of columns
Checks if a matrix is of a particular size.