To get the rows or columns of an mxMatrix
myMatrix <- mxMatrix('Full', 3, 5) nrow(myMatrix) ncol(myMatrix)