The length of X must match the number of rows of Y.